UNNotificationCategory.FromIdentifier Method

Definition

Overloads

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

Creates and returns a new notification category from the specified arguments.

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

Creates and returns a new notification category from the specified arguments.

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

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

Creates and returns a new notification category from the specified arguments.

[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

Parameters

identifier
String

The app-unique identifier for the category.

actions
UNNotificationAction[]

Four or fewer actions to display.

intentIdentifiers
String[]

The intent identifiers for the category.

options
UNNotificationCategoryOptions

Category options.

Returns

Attributes

Applies to

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

Creates and returns a new notification category from the specified arguments.

[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

Parameters

identifier
String

The app-unique identifier for the category.

actions
UNNotificationAction[]

Four or fewer actions to display.

intentIdentifiers
String[]

The intent identifiers for the category.

hiddenPreviewsBodyPlaceholder
String

A string to display when notification previews are disabled.

options
UNNotificationCategoryOptions

Category options.

Returns

A new notification category from the specified arguments.

Attributes

Applies to

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

Parameters

identifier
String
intentIdentifiers
String[]
hiddenPreviewsBodyPlaceholder
String
categorySummaryFormat
NSString

Returns

Attributes

Applies to