共用方式為


UNNotificationCategory.FromIdentifier 方法

定義

多載

FromIdentifier(String, UNNotificationAction[], String[], UNNotificationCategoryOptions)

從指定的引數建立並傳回新的通知類別。

FromIdentifier(String, UNNotificationAction[], String[], String, UNNotificationCategoryOptions)

從指定的引數建立並傳回新的通知類別。

FromIdentifier(String, UNNotificationAction[], String[], String, NSString, UNNotificationCategoryOptions)

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
intentIdentifiers
String[]
hiddenPreviewsBodyPlaceholder
String
categorySummaryFormat
NSString

傳回

屬性

適用於