UNNotificationRequest.FromIdentifier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new notification request with the specified identifier
, content
, and trigger
.
[Foundation.Export("requestWithIdentifier:content:trigger:")]
public static UserNotifications.UNNotificationRequest FromIdentifier (string identifier, UserNotifications.UNNotificationContent content, UserNotifications.UNNotificationTrigger trigger);
static member FromIdentifier : string * UserNotifications.UNNotificationContent * UserNotifications.UNNotificationTrigger -> UserNotifications.UNNotificationRequest
Parameters
- identifier
- String
An identifer, unique to the application scope.
- content
- UNNotificationContent
The content of the notification.
- trigger
- UNNotificationTrigger
The trigger that activates the notification when the trigger's conditions are met.
This parameter can be null
.
Returns
A new notification request.
- Attributes