Class ISN_UNNotificationContent
The content of a local or remote notification.
Inheritance
Inherited Members
Namespace: SA.iOS.UserNotifications
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UNNotificationContent
Properties
Badge
The number to display as the app’s icon badge.
When the number in this property is 0, the system does not display a badge. When the number is greater than 0, the system displays the badge with the specified number.
Declaration
public long Badge { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Body
The message displayed in the notification alert.
Printf style escape characters are stripped from the string prior to display; to include a percent symbol (%) in the message body, use two percent symbols (%%).
Declaration
public string Body { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Sound
The sound to play when the notification is delivered.
Notifications can play a default sound or a custom sound. For information on how to specify custom sounds for your notifications, see ISN_UNNotificationSound.
Declaration
public ISN_UNNotificationSound Sound { get; set; }
Property Value
Type | Description |
---|---|
ISN_UNNotificationSound |
Subtitle
A secondary description of the reason for the alert.
Subtitles offer additional context in cases where the title alone is not clear. Subtitles are not displayed in all cases.
Declaration
public string Subtitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Title
A short description of the reason for the alert.
When a title is present, the system attempts to display a notification alert. Apps must be authorized to display alerts.
Title strings should be short, usually only a couple of words describing the reason for the notification. In watchOS, the title string is displayed as part of the short look notification interface, which has limited space.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetUserInfo<T>()
Gets custom developer defined serializable object associated with the notification.
The object will be deserialized with
Declaration
public T GetUserInfo<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
SetUserInfo(Object)
A custom developer defined serializable object associated with the notification.
The object will be serialized with
Declaration
public void SetUserInfo(object userInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Object | userInfo | Serializable object. |