Class Notification
Inheritance
System.Object
Notification
Assembly: cs.temp.dll.dll
Syntax
public class Notification
Constructors
Notification(String, String, NotificationContent, Boolean, Boolean)
Declaration
public Notification(string notificationId, string actionId, NotificationContent content, bool isForeground, bool isOpened)
Parameters
Type |
Name |
Description |
System.String |
notificationId |
|
System.String |
actionId |
|
NotificationContent |
content |
|
System.Boolean |
isForeground |
|
System.Boolean |
isOpened |
|
Fields
actionId
Declaration
public readonly string actionId
Field Value
Type |
Description |
System.String |
|
content
The notification content.
Declaration
public readonly NotificationContent content
Field Value
id
Declaration
public readonly string id
Field Value
Type |
Description |
System.String |
|
isAppInForeground
Returns true
if the notification arrives when the app is in foreground, false
otherwise.
Declaration
public readonly bool isAppInForeground
Field Value
Type |
Description |
System.Boolean |
|
isOpened
Returns true
if the notification was posted to the device's notification center and then opened by the user.
This will be false
if the notification was not posted to the notification center
(e.g. because the app is in foreground) and its data was sent to your app directly.
Declaration
public readonly bool isOpened
Field Value
Type |
Description |
System.Boolean |
|