共用方式為


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

傳回

新的通知要求。

屬性

適用於