UNNotificationRequest.FromIdentifier Metodo

Definizione

Crea una nuova richiesta di notifica con gli oggetti , contente triggerspecificatiidentifier.

[Foundation.Export("requestWithIdentifier:content:trigger:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationRequest FromIdentifier(string identifier, UserNotifications.UNNotificationContent content, UserNotifications.UNNotificationTrigger? trigger);
[<Foundation.Export("requestWithIdentifier:content:trigger:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Valori restituiti

Nuova richiesta di notifica.

Attributi

Si applica a