UNNotificationCategory.FromIdentifier 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FromIdentifier(String, UNNotificationAction[], String[], UNNotificationCategoryOptions)
從指定的引數建立並傳回新的通知類別。
[Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:options:")]
public static UserNotifications.UNNotificationCategory FromIdentifier (string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, UserNotifications.UNNotificationCategoryOptions options);
static member FromIdentifier : string * UserNotifications.UNNotificationAction[] * string[] * UserNotifications.UNNotificationCategoryOptions -> UserNotifications.UNNotificationCategory
參數
- identifier
- String
類別的應用程式唯一識別碼。
- actions
- UNNotificationAction[]
要顯示的四個或更少動作。
- intentIdentifiers
- String[]
類別的意圖識別碼。
- options
- UNNotificationCategoryOptions
類別選項。
傳回
- 屬性
適用於
FromIdentifier(String, UNNotificationAction[], String[], String, UNNotificationCategoryOptions)
從指定的引數建立並傳回新的通知類別。
[Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:options:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UserNotifications.UNNotificationCategory FromIdentifier (string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, UserNotifications.UNNotificationCategoryOptions options);
static member FromIdentifier : string * UserNotifications.UNNotificationAction[] * string[] * string * UserNotifications.UNNotificationCategoryOptions -> UserNotifications.UNNotificationCategory
參數
- identifier
- String
類別的應用程式唯一識別碼。
- actions
- UNNotificationAction[]
要顯示的四個或更少動作。
- intentIdentifiers
- String[]
類別的意圖識別碼。
- hiddenPreviewsBodyPlaceholder
- String
停用通知預覽時顯示的字串。
- options
- UNNotificationCategoryOptions
類別選項。
傳回
來自指定引數的新通知類別。
- 屬性
適用於
FromIdentifier(String, UNNotificationAction[], String[], String, NSString, UNNotificationCategoryOptions)
[Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:categorySummaryFormat:options:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UserNotifications.UNNotificationCategory FromIdentifier (string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, Foundation.NSString categorySummaryFormat, UserNotifications.UNNotificationCategoryOptions options);
static member FromIdentifier : string * UserNotifications.UNNotificationAction[] * string[] * string * Foundation.NSString * UserNotifications.UNNotificationCategoryOptions -> UserNotifications.UNNotificationCategory
參數
- identifier
- String
- actions
- UNNotificationAction[]
- intentIdentifiers
- String[]
- hiddenPreviewsBodyPlaceholder
- String
- categorySummaryFormat
- NSString
- options
- UNNotificationCategoryOptions
傳回
- 屬性