Titanium.App.iOS.UserNotificationAction
> Titanium.App.iOS.UserNotificationAction

An action the user selects in response to an interactive notification.

To create a notification action, use the Titanium.App.iOS.createUserNotificationAction method.

An notification action represents an option a user selects in response to an interactive notification. The notification action is represented as a button in the application UI.

  • 3.4.0
  • 3.4.0
Defined By

Properties

Titanium.App.iOS.UserNotificationAction
activationMode : NumberCreation-Only

Selects how to activate the application.

Selects how to activate the application.

Set to Titanium.App.iOS.USER_NOTIFICATION_ACTIVATION_MODE_BACKGROUND to activate the application in the background to respond to the action unless the application is already in the foreground.

Set to Titanium.App.iOS.USER_NOTIFICATION_ACTIVATION_MODE_FOREGROUND to launch the application in the foreground to respond to the action. These actions won't be displayed on Apple Watch.

This API can be assigned the following constants:

apiName : Stringreadonly

The name of the API that this proxy corresponds to.

The name of the API that this proxy corresponds to.

The value of this property is the fully qualified name of the API. For example, Button returns Ti.UI.Button.

  • 3.2.0
  • 3.2.0
  • 3.2.0
Titanium.App.iOS.UserNotificationAction
: BooleanCreation-Only
Set to true if the action requires the device to be unlocked. ...

Set to true if the action requires the device to be unlocked. On the Apple Watch actions never require authentication.

Titanium.App.iOS.UserNotificationAction
: NumberCreation-Only
Custom behavior the user notification supports. ...

Custom behavior the user notification supports.

Requires: iOS 9.0 and later

This API can be assigned the following constants:

Default: Titanium.App.iOS.USER_NOTIFICATION_BEHAVIOR_DEFAULT

  • 5.1.0
  • 5.1.0
Titanium.App.iOS.UserNotificationAction
destructive : BooleanCreation-Only

Set to true if the action causes destructive behavior to the user's data or the application.

Set to true if the action causes destructive behavior to the user's data or the application.

The action appears red in the locked screen and notification center instead of the default color.

Titanium.App.iOS.UserNotificationAction
: StringCreation-Only
Identifier for this action. ...

Identifier for this action. Used to identify the action the user pressed.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.

  • 3.6.0
Titanium.App.iOS.UserNotificationAction
title : StringCreation-Only

Title of the button displayed in the notification.

Title of the button displayed in the notification.

Defined By

Methods

Titanium.App.iOS.UserNotificationAction
( ) : Number
Gets the value of the activationMode property. ...

Gets the value of the activationMode property.

Returns

  • Number
Gets the value of the apiName property. ...

Gets the value of the apiName property.

  • 3.2.0
  • 3.2.0
  • 3.2.0

Returns

  • String
Titanium.App.iOS.UserNotificationAction
( ) : Number
Gets the value of the behavior property. ...

Gets the value of the behavior property.

  • 5.1.0
  • 5.1.0

Returns

  • Number
Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Titanium.App.iOS.UserNotificationAction
( activationMode )
Sets the value of the activationMode property. ...

Sets the value of the activationMode property.

Parameters

  • activationMode : Number

    New value for the property.

Returns

  • void
Titanium.App.iOS.UserNotificationAction
( behavior )
Sets the value of the behavior property. ...

Sets the value of the behavior property.

  • 5.1.0
  • 5.1.0

Parameters

  • behavior : Number

    New value for the property.

Returns

  • void
Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void