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

ApplicationEvents ()

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"

Functions

Public functions

Constructor

ApplicationEvents ()

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. No payload.

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.)

SIMULATOR: String

static

Fired when the simulator menu is used; payload is "nextRes" or "prevRes".

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.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.