Share via


UNNotificationCategory.FromIdentifier Método

Definición

Sobrecargas

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

Crea y devuelve una nueva categoría de notificación a partir de los argumentos especificados.

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

Crea y devuelve una nueva categoría de notificación a partir de los argumentos especificados.

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

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

Crea y devuelve una nueva categoría de notificación a partir de los argumentos especificados.

[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

Parámetros

identifier
String

Identificador único de la aplicación para la categoría.

actions
UNNotificationAction[]

Cuatro o menos acciones que se van a mostrar.

intentIdentifiers
String[]

Identificadores de intención de la categoría.

options
UNNotificationCategoryOptions

Opciones de categoría.

Devoluciones

Atributos

Se aplica a

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

Crea y devuelve una nueva categoría de notificación a partir de los argumentos especificados.

[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

Parámetros

identifier
String

Identificador único de la aplicación para la categoría.

actions
UNNotificationAction[]

Cuatro o menos acciones que se van a mostrar.

intentIdentifiers
String[]

Identificadores de intención de la categoría.

hiddenPreviewsBodyPlaceholder
String

Cadena que se va a mostrar cuando se deshabilitan las vistas previas de notificación.

options
UNNotificationCategoryOptions

Opciones de categoría.

Devoluciones

Nueva categoría de notificación de los argumentos especificados.

Atributos

Se aplica a

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

Parámetros

identifier
String
intentIdentifiers
String[]
hiddenPreviewsBodyPlaceholder
String
categorySummaryFormat
NSString

Devoluciones

Atributos

Se aplica a