iOS Guides | Samples

UIKit.UIUserNotificationAction Class

Developers should not use this deprecated class. Instead, they should use UNNotificationAction.

See Also: UIUserNotificationAction


[Foundation.Register("UIUserNotificationAction", true)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UserNotifications.UNNotificationAction' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIUserNotificationAction : NSObject, INSMutableCopying, INSSecureCoding, IDisposable

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UIUserNotificationAction are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

ActivationModeUIUserNotificationActivationMode. Mode where the app is run when the action is performed. (read-only)
AuthenticationRequiredBoolean. Designates if the user needs to unlock the device before the action is performed. (read-only)
BehaviorUIUserNotificationActionBehavior. Holds the type of user response action allowed (that is, whether text input it allowed).
ClassHandleIntPtr. The handle for this class.
DestructiveBoolean. Designates if the action is destructive. (read-only)
IdentifierString. String used internally for identification of the action. (read-only)
ParametersNSDictionary. Developers should not use this method, as this type is deprecated.
ResponseTypedTextKeyNSString. Developers should not use this deprecated property. Developers should use 'UNTextInputNotificationResponse.UserText' instead.
TitleString. String used as the button title for the action. (read-only)

Public Methods

Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
Encodes the state of the object on the provided encoder
MutableCopy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.