Class NotificationContent
Inheritance
System.Object
NotificationContent
Assembly: cs.temp.dll.dll
Syntax
public class NotificationContent
Fields
badge
[iOS only] The number to display as the app’s icon badge.
When the number in this property is 0 or smaller, the system does not display a badge.
When the number is greater than 0, the system displays the badge with the specified number.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
body
The message displayed in the notification alert.
Declaration
Field Value
Type |
Description |
System.String |
|
categoryId
The identifier of the category this notification belongs to.
If no category is specified, the default one will be used.
Declaration
Field Value
Type |
Description |
System.String |
|
DEFAULT_ANDROID_LARGE_ICON
Declaration
public const string DEFAULT_ANDROID_LARGE_ICON = "ic_large_em_default"
Field Value
Type |
Description |
System.String |
|
DEFAULT_ANDROID_SMALL_ICON
Declaration
public const string DEFAULT_ANDROID_SMALL_ICON = "ic_stat_em_default"
Field Value
Type |
Description |
System.String |
|
largeIcon
[Android only] The large icon displayed on the notification.
Give it a value only if you want to use a custom icon rather than the default one.
Declaration
Field Value
Type |
Description |
System.String |
|
smallIcon
[Android only] The small icon displayed on the notification.
Give it a value only if you want to use a custom icon rather than the default one.
Declaration
Field Value
Type |
Description |
System.String |
|
subtitle
[iOS only] The notification subtitle.
Declaration
Field Value
Type |
Description |
System.String |
|
title
Declaration
Field Value
Type |
Description |
System.String |
|
userInfo
A dictionary to attach custom data to the notification. This is optional.
Declaration
public Dictionary<string, object> userInfo
Field Value
Type |
Description |
Dictionary<System.String, System.Object> |
|