UNNotificationRequest.FromIdentifier 方法

定义

使用指定的 identifiercontenttrigger创建新的通知请求。

[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

参数

identifier
String

应用程序范围唯一的标识符。

content
UNNotificationContent

通知的内容。

trigger
UNNotificationTrigger

满足触发器条件时激活通知的触发器。

此参数可以为 null

返回

新的通知请求。

属性

适用于