Struct NotificationCenterArgs
Initialization arguments for NotificationCenter. Recommended to use Default to retrieve recommened default values and then alter it. It is required to manually set AndroidChannelId.
Inherited Members
Namespace: Unity.Notifications
Assembly: solution.dll
Syntax
public struct NotificationCenterArgs
Properties
AndroidChannelDescription
A user visible description for the channel. Optional, Android only. Leave null, if you wish to create channel manually. Set this to channel description for it to be created automatically during initialization. If this is set, then AndroidChannelName must also be set.
Declaration
public string AndroidChannelDescription { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
AndroidChannelId
A custom non-empty string to identify notification channel. Required, Android only. All notifications will be sent to this channel. Channel is created automatically during initialization if AndroidChannelName and AndroidChannelDescription are both set. If name and description are left null, channel with given identifier has to be created manually (for example using AndroidNotificationCenter.RegisterNotificationChannel(AndroidNotificationChannel)).
Declaration
public string AndroidChannelId { get; set; }
Property Value
Type | Description |
---|---|
string |
AndroidChannelName
A user visible name for notification channel. Optional, Android only. Leave null, if you wish to create channel manually. Set this to channel name for it to be created automatically during initialization. If this is set, then AndroidChannelDescription must also be set.
Declaration
public string AndroidChannelName { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Default
Returns recommended default values for all settings.
Declaration
public static NotificationCenterArgs Default { get; }
Property Value
Type | Description |
---|---|
NotificationCenterArgs |
PresentationOptions
Options specifying how notifications should be presented to user when they arrive. On Android these only have effect if notification channel is created uppon initialization (all channel related properties are set). On iOS these only have effect if permission to post notification is later requested using RequestPermission()
Declaration
public NotificationPresentation PresentationOptions { get; set; }
Property Value
Type | Description |
---|---|
NotificationPresentation |