Condividi tramite


UNNotificationRequest.FromIdentifier Metodo

Definizione

Crea una nuova richiesta di notifica con l'oggetto , contente triggerspecificatiidentifier.

[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

Parametri

identifier
String

Identificatore, univoco per l'ambito dell'applicazione.

content
UNNotificationContent

Contenuto della notifica.

trigger
UNNotificationTrigger

Trigger che attiva la notifica quando vengono soddisfatte le condizioni del trigger.

Questo parametro può essere null.

Restituisce

Nuova richiesta di notifica.

Attributi

Si applica a