UNNotificationRequest.FromIdentifier 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的 identifier
、 content
和 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
参数
- identifier
- String
应用程序范围唯一的标识符。
- content
- UNNotificationContent
通知的内容。
返回
新的通知请求。
- 属性