Packagecom.distriqt.extension.forcetouch.shortcut
Interfacepublic interface ApplicationShortcuts extends flash.events.IEventDispatcher

Application Shortcuts functionality. Provides the ability to listen for application shortcut events and dynamically add and remove shortcuts as required.



Public Properties
 PropertyDefined By
  isSupported : Boolean
[read-only] Checks if the current device and platform supports application shortcuts
ApplicationShortcuts
Public Methods
 MethodDefined By
  
Adds a dynamic ApplicationShortcut item for the application.
ApplicationShortcuts
  
removeDynamicShortcut(identifier:String):Boolean
Removes a previously added ApplicationShortcut.
ApplicationShortcuts
Events
 Event Summary Defined By
   Dispatched when a shortcut was selected by the user.ApplicationShortcuts
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Checks if the current device and platform supports application shortcuts


Implementation
    public function get isSupported():Boolean
Method Detail
addDynamicShortcut()method
public function addDynamicShortcut(shortcut:ApplicationShortcut):Boolean

Adds a dynamic ApplicationShortcut item for the application. Note that the identifier (or type) property should be unique for all items and this call may fail if you specify two shortcuts with the same identifier. Note: You can specify a maximum of 4 shortcut items. However, if your application descriptor specifies any static shortcut items, they will take precedence and limit the number of custom items that are allowed to be added here. For example, if you specify 2 static shortcut items in your descriptor / resources, you can only add 2 more custom items with this method.

Parameters

shortcut:ApplicationShortcut — An ApplicationShortcut item to be added

Returns
Booleantrue if the shortcut was successfully added and false if there was an error.
removeDynamicShortcut()method 
public function removeDynamicShortcut(identifier:String):Boolean

Removes a previously added ApplicationShortcut.

Parameters

identifier:String — The identifier (or type) of the item to be removed

Returns
Boolean
Event Detail
shortcut:selected Event
Event Object Type: com.distriqt.extension.forcetouch.events.ApplicationShortcutEvent
ApplicationShortcutEvent.type property = com.distriqt.extension.forcetouch.events.ApplicationShortcutEvent.SHORTCUT_SELECTED

Dispatched when a shortcut was selected by the user.