Package | com.distriqt.extension.forcetouch.shortcut |
Interface | public interface ApplicationShortcuts extends flash.events.IEventDispatcher |
Property | Defined By | ||
---|---|---|---|
isSupported : Boolean [read-only]
Checks if the current device and platform supports application shortcuts
| ApplicationShortcuts |
Method | Defined By | ||
---|---|---|---|
addDynamicShortcut(shortcut:ApplicationShortcut):Boolean
Adds a dynamic ApplicationShortcut item for the application. | ApplicationShortcuts | ||
removeDynamicShortcut(identifier:String):Boolean
Removes a previously added ApplicationShortcut. | ApplicationShortcuts |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when a shortcut was selected by the user. | ApplicationShortcuts |
isSupported | property |
isSupported:Boolean
[read-only] Checks if the current device and platform supports application shortcuts
public function get isSupported():Boolean
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
|
Boolean — true 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
|
Boolean |
shortcut:selected | Event |
com.distriqt.extension.forcetouch.events.ApplicationShortcutEvent
com.distriqt.extension.forcetouch.events.ApplicationShortcutEvent.SHORTCUT_SELECTED
Dispatched when a shortcut was selected by the user.