Share via


UNNotificationAction.FromIdentifier Method

Definition

Overloads

Name Description
FromIdentifier(String, String, UNNotificationActionOptions)

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

FromIdentifier(String, String, UNNotificationActionOptions, UNNotificationActionIcon)

FromIdentifier(String, String, UNNotificationActionOptions)

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

[Foundation.Export("actionWithIdentifier:title:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationAction FromIdentifier(string identifier, string title, UserNotifications.UNNotificationActionOptions options);
[<Foundation.Export("actionWithIdentifier:title:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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

FromIdentifier(String, String, UNNotificationActionOptions, UNNotificationActionIcon)

[Foundation.Export("actionWithIdentifier:title:options:icon:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationAction FromIdentifier(string identifier, string title, UserNotifications.UNNotificationActionOptions options, UserNotifications.UNNotificationActionIcon? icon);
[<Foundation.Export("actionWithIdentifier:title:options:icon:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromIdentifier : string * string * UserNotifications.UNNotificationActionOptions * UserNotifications.UNNotificationActionIcon -> UserNotifications.UNNotificationAction

Parameters

identifier
String
title
String

Returns

Attributes

Applies to