Szerkesztés

Megosztás a következőn keresztül:


UNNotificationAction.FromIdentifier Method

Definition

Creates and returns a new notification action with the specified identifier, title, and options.

[Foundation.Export("actionWithIdentifier:title:options:")]
public static UserNotifications.UNNotificationAction FromIdentifier (string identifier, string title, UserNotifications.UNNotificationActionOptions options);
static member FromIdentifier : string * string * UserNotifications.UNNotificationActionOptions -> UserNotifications.UNNotificationAction

Parameters

identifier
String

The unique identifier that the application will use to find the action.

title
String

A localized action title.

options
UNNotificationActionOptions

A mask that indicates whether authentication is required, whether the action is destructive, and/or whether to run the application in the foreground.

Returns

A new notification action with the specified identifier, title, and options.

Attributes

Applies to