Class ISN_UNNotificationRequest
An object you use to specify a notification’s content and the condition that triggers its delivery.
Inheritance
Inherited Members
Namespace: SA.iOS.UserNotifications
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UNNotificationRequest
Constructors
ISN_UNNotificationRequest(String, ISN_UNNotificationContent, ISN_UNNotificationTrigger)
Creates and returns a local notification request object.
Use this method when you want to schedule the delivery of a local notification. This method creates the request object that you subsequently pass to the AddNotificationRequest(ISN_UNNotificationRequest, Action<SA_Result>) method.
The system uses the identifier parameter to determine how to handle the request:
- If you provide a unique identifier, the system creates a new notification.
- If the identifier matches a previously delivered notification, the system alerts the user again, replaces the old notification with the new one, and places the new notification at the top of the list.
- If the identifier matches a pending request, the new request replaces the pending request.
Declaration
public ISN_UNNotificationRequest(string identifier, ISN_UNNotificationContent content, ISN_UNNotificationTrigger trigger)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | An identifier for the request; this parameter must not be |
ISN_UNNotificationContent | content | The content of the notification. This parameter must not be |
ISN_UNNotificationTrigger | trigger | The condition that causes the notification to be delivered. Specify |
Properties
Content
The content associated with the notification.
Use this property to access the contents of the notification. The content object contains the badge information, sound to be played, or alert text to be displayed to the user, in addition to the notification’s thread identifier.
Declaration
public ISN_UNNotificationContent Content { get; set; }
Property Value
Type | Description |
---|---|
ISN_UNNotificationContent |
Identifier
The unique identifier for this notification request.
Use this string to identify notifications in your app. For example, you can pass this string to the RemovePendingNotificationRequests(String[]) method to cancel a previously scheduled notification.
If you use the same identifier when scheduling a new notification, the system removes the previously scheduled notification with that identifier and replaces it with the new one.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
System.String |
Trigger
The conditions that trigger the delivery of the notification.
For notifications that have already been delivered, use this property to determine what caused the delivery to occur.
Declaration
public ISN_UNNotificationTrigger Trigger { get; set; }
Property Value
Type | Description |
---|---|
ISN_UNNotificationTrigger |