ApplicationEvents
public class
loom.ApplicationEvents
Description
Event types for various generic application events. There are many low-bandwidth events which need to be processed; rather than exposing strict APIs, we have a simple and flexible event bus. Use these with Application.fireGenericEvent and Application.event.
API overview
Constructor
Attributes
Public attributes
CAMERA_FAIL: String |
static
Fired when native Camera UI has failed; payload is an error message |
CAMERA_REQUEST: String |
static
Fire to show native Camera UI |
CAMERA_SUCCESS: String |
static
Fired when native Camera UI finished; payload is the path to the saved camera image |
KEYBOARD_RESIZE: String |
static
Fired when the soft keyboard (IME) becomes visible |
SIMULATOR: String |
static
Fired when the simulator menu is used; payload is "nextRes" or "prevRes" |
Constructor
ApplicationEvents ()
Attributes
CAMERA_SUCCESS: String
static
Fired when native Camera UI finished; payload is the path to the saved camera image.
KEYBOARD_RESIZE: String
static
Fired when the soft keyboard (IME) becomes visible. Payload is the new visible height of the screen. (ie, if the screen is 1024px high and the keyboard takes up 200px, you are passed 824px when the keyboard becomes visible and 1024px when the keyboard goes away.)
Functions
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
Type | The Type that describes the object. |