Titanium.App.iOS.UserNotificationCategory
> Titanium.App.iOS.UserNotificationCategory

A set of notification actions to associate with a notification.

To create a notification category, use the Titanium.App.iOS.createUserNotificationCategory method.

A notification category represents a collection of Titanium.App.iOS.UserNotificationAction to associate with a specific notification. The notification category allows the application to customize the notification options based on which notification style is used. For alert dialogs, only four notification actions can be displayed, while all other notifications can only display two actions.

To use a local interactive notification, you need to register the notification category using the Titanium.App.iOS.registerUserNotificationSettings method and send a notification using the Titanium.App.iOS.scheduleLocalNotification and pass the category identifier to the category property.

  • 3.4.0
  • 3.4.0
Defined By

Properties

Titanium.App.iOS.UserNotificationCategory
actionsForDefaultContext : Titanium.App.iOS.UserNotificationAction[]Creation-Only

Array of notification actions to associate with the group.

Array of notification actions to associate with the group.

Note that only the first four actions can be displayed for an alert dialog and on the Apple Watch. The first two actions can be displayed for all other notifications.

Titanium.App.iOS.UserNotificationCategory
actionsForMinimalContext : Titanium.App.iOS.UserNotificationAction[]Creation-Only

Array of notification actions to display for non-dialog-style notification.

Array of notification actions to display for non-dialog-style notification.

If not specified, the first two actions from actionsForDefaultContent are displayed.

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.UserNotificationCategory
identifier : StringCreation-Only

Identifier for this category.

Identifier for this category.

When scheduling a notification, pass this value to the category property.

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
Defined By

Methods

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
Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void