| Package | com.distriqt.extension.forcetouch |
| Class | public final class ForceTouch |
| Inheritance | ForceTouch flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| implementation : String [read-only]
The implementation currently in use. | ForceTouch | ||
| instance : ForceTouch [static] [read-only] | ForceTouch | ||
| isSupported : Boolean [static] [read-only]
Whether the current device supports the extensions functionality
| ForceTouch | ||
| nativeVersion : String [read-only]
The native version string of the native extension. | ForceTouch | ||
| service : ForceTouch [static] [read-only]
The singleton instance of the ForceTouch class. | ForceTouch | ||
| shortcuts : ApplicationShortcuts [read-only]
Access to the application shortcuts functionality
| ForceTouch | ||
| version : String [read-only]
The version of this extension. | ForceTouch | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
You should not call this directly, but instead use the singleton access
| ForceTouch | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override] | ForceTouch | ||
addShortcutItem(item:ApplicationShortcut):String Deprecated: Use ApplicationShortcuts functionality via ForceTouch.instance.shortcuts.addDynamicShortcut() | ForceTouch | ||
dispose():void
Disposes the extension and releases any allocated resources. | ForceTouch | ||
enableForceTouch():void
Enables force touch for UI touch events on the application
Once enabled, listen for ForceTouchEvent class events to get feedback
about 3d touch
| ForceTouch | ||
init(key:String):void Deprecated: You no longer need call this function or use an application key [static]
Initialises the extension class for use with the provided key. | ForceTouch | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [override] | ForceTouch | ||
removeShortcutItem(type:String):void Deprecated: Use ApplicationShortcuts functionality via ForceTouch.instance.shortcuts.removeDynamicShortcut() | ForceTouch | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| ForceTouch | ||||
| ForceTouch | ||||
| ForceTouch | ||||
| Constant | Defined By | ||
|---|---|---|---|
| EXT_CONTEXT_ID : String = com.distriqt.ForceTouch [static] | ForceTouch | ||
| VERSION : String = 3.3.0 [static] | ForceTouch | ||
| implementation | property |
implementation:String [read-only]
The implementation currently in use. This should be one of the following depending on the platform in use and the functionality supported by this extension:
AndroidiOSdefaultunknown public function get implementation():String| instance | property |
| isSupported | property |
isSupported:Boolean [read-only] Whether the current device supports the extensions functionality
public static function get isSupported():Boolean| nativeVersion | property |
nativeVersion:String [read-only]
The native version string of the native extension.
public function get nativeVersion():String| service | property |
service:ForceTouch [read-only] The singleton instance of the ForceTouch class.
public static function get service():ForceTouchError — If there was a problem creating or accessing the extension, or if the key is invalid
|
| shortcuts | property |
shortcuts:ApplicationShortcuts [read-only] Access to the application shortcuts functionality
public function get shortcuts():ApplicationShortcuts| version | property |
version:String [read-only]
The version of this extension.
This should be of the format, MAJOR.MINOR.BUILD
public function get version():String| ForceTouch | () | Constructor |
public function ForceTouch()Constructor You should not call this directly, but instead use the singleton access
| addEventListener | () | method |
override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidParameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) | |
priority:int (default = 0) | |
useWeakReference:Boolean (default = false) |
| addShortcutItem | () | method |
public function addShortcutItem(item:ApplicationShortcut):StringParameters
item:ApplicationShortcut |
String |
| dispose | () | method |
public function dispose():void
Disposes the extension and releases any allocated resources. Once this function
has been called, a call to init is neccesary again before any of the
extensions functionality will work.
| enableForceTouch | () | method |
public function enableForceTouch():void
Enables force touch for UI touch events on the application
Once enabled, listen for ForceTouchEvent class events to get feedback about 3d touch
| init | () | method |
public static function init(key:String):voidInitialises the extension class for use with the provided key.
Parameters
key:String |
Error — If there was a problem creating or accessing the extension, or if the key is invalid
|
| removeEventListener | () | method |
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) |
| removeShortcutItem | () | method |
public function removeShortcutItem(type:String):voidParameters
type:String |
| forceTouch:touch:end | Event |
com.distriqt.extension.forcetouch.events.ForceTouchEventcom.distriqt.extension.forcetouch.events.ForceTouchEvent.ENDED
| forceTouch:touch:maxPress | Event |
com.distriqt.extension.forcetouch.events.ForceTouchEventcom.distriqt.extension.forcetouch.events.ForceTouchEvent.MAX_PRESS
| forceTouch:touch:press | Event |
com.distriqt.extension.forcetouch.events.ForceTouchEventcom.distriqt.extension.forcetouch.events.ForceTouchEvent.PRESS
| EXT_CONTEXT_ID | Constant |
public static const EXT_CONTEXT_ID:String = com.distriqt.ForceTouch| VERSION | Constant |
public static const VERSION:String = 3.3.0