Compartir a través de


UNNotificationRequest.FromIdentifier Método

Definición

Crea una nueva solicitud de notificación con el especificado identifier, contenty 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

Parámetros

identifier
String

Un identificador, único para el ámbito de la aplicación.

content
UNNotificationContent

Contenido de la notificación.

trigger
UNNotificationTrigger

Desencadenador que activa la notificación cuando se cumplen las condiciones del desencadenador.

Este parámetro puede ser null.

Devoluciones

Nueva solicitud de notificación.

Atributos

Se aplica a