Share via


UNNotificationCategory.FromIdentifier Method

Definition

Overloads

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

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

[Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationCategory FromIdentifier(string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, UserNotifications.UNNotificationCategoryOptions options);
[<Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationCategory FromIdentifier(string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, UserNotifications.UNNotificationCategoryOptions options);
[<Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationCategory FromIdentifier(string identifier, UserNotifications.UNNotificationAction[] actions, string[] intentIdentifiers, string? hiddenPreviewsBodyPlaceholder, Foundation.NSString? categorySummaryFormat, UserNotifications.UNNotificationCategoryOptions options);
[<Foundation.Export("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:categorySummaryFormat:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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