Düzenle

Aracılığıyla paylaş


UNNotificationRequest.FromIdentifier Method

Definition

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

Applies to