Class ISN_UNNotificationSound
A sound to be played when a notification is delivered.
Inheritance
Inherited Members
Namespace: SA.iOS.UserNotifications
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UNNotificationSound
Constructors
ISN_UNNotificationSound(String)
Creates new ISN_UNNotificationSound object with sounds name.
Declaration
public ISN_UNNotificationSound(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the sound file. |
Properties
DefaultSound
Returns an object representing the default sound for notifications.
Declaration
public static ISN_UNNotificationSound DefaultSound { get; }
Property Value
Type | Description |
---|---|
ISN_UNNotificationSound |
SoundName
Sound file name
Declaration
public string SoundName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the sound. |
Methods
SoundNamed(String)
Creates and returns a notification sound object that plays the specified sound file.
Make sure you've added sounds file to the XCode project with IOS Deploy settings Stan's Assets -> IOS Deploy Pro -> Setting and look for a files section
Also feel free to use another ways of adding sound ot the XCode project. Just keep in mind that file must be located in the current executable’s main bundle or in the Library/Sounds directory of the current app container directory.
Declaration
public static ISN_UNNotificationSound SoundNamed(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the sound file to play. This file must be located in the current executable’s main bundle. |
Returns
Type | Description |
---|---|
ISN_UNNotificationSound |