UNNotificationRequest.FromIdentifier Methode

Definition

Erstellt eine neue Benachrichtigungsanforderung mit dem angegebenen identifier, contentund trigger.

[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

Parameter

identifier
String

Ein Bezeichner, der für den Anwendungsbereich eindeutig ist.

content
UNNotificationContent

Der Inhalt der Benachrichtigung.

trigger
UNNotificationTrigger

Der Trigger, der die Benachrichtigung aktiviert, wenn die Bedingungen des Triggers erfüllt sind.

Dieser Parameter kann null sein.

Gibt zurück

Eine neue Benachrichtigungsanforderung.

Attribute

Gilt für: