Packagecom.distriqt.extension.notifications.actions
Classpublic class Action
InheritanceAction Inheritance Object

Represents a possible quick action that a user can perform on a notification You should not construct this class directly but instead use the ActionBuilder

See also

com.distriqt.extension.notifications.builders.ActionBuilder


Public Properties
 PropertyDefined By
  destructive : Boolean = false
If true this action will indicate its destructive nature by making the action red.
Action
  icon : String
A custom icon resource name, eg: ic_stat_distriqt_default These custom resources must be packaged along with your application.
Action
  identifier : String
This value is used to identify this action and is returned in events associated with actions on a notification.
Action
  shouldCancelOnAction : Boolean = false
If true selection of this action will clear the notification from the notification area.
Action
  title : String
The visible label to display on this action
Action
  willLaunchApplication : Boolean = false
If true this action will launch your application.
Action
Public Methods
 MethodDefined By
  
Constructor
Action
Property Detail
destructiveproperty
public var destructive:Boolean = false

If true this action will indicate its destructive nature by making the action red. iOS Only

iconproperty 
public var icon:String

A custom icon resource name, eg: ic_stat_distriqt_default These custom resources must be packaged along with your application. Android Only

identifierproperty 
public var identifier:String

This value is used to identify this action and is returned in events associated with actions on a notification. This value should be unique within a category, and you may wish to make them unique across your application to make processing easier.

shouldCancelOnActionproperty 
public var shouldCancelOnAction:Boolean = false

If true selection of this action will clear the notification from the notification area. Android Only

titleproperty 
public var title:String

The visible label to display on this action

willLaunchApplicationproperty 
public var willLaunchApplication:Boolean = false

If true this action will launch your application. This is not suggested as these actions are supposed to be quick actions and not take the user away from their current application. The default is false Android Only

Constructor Detail
Action()Constructor
public function Action()

Constructor