ButtonState

constructor(context: Context, key: Int, desc: Int, image: Drawable, eventType: String)

Builds a button state object for a given key, description, state manager and event type.

Parameters

context

The Android application context.

key

The given key used to identify the button glyph.

desc

The given accessible descripiton.

image

The, likely null, custom image to use instead of the icon font face.

eventType

The event type to emit when the the button is clicked.


constructor(context: Context, key: Int, desc: Int, image: Drawable, handler: OnClickListener)

Builds a button state object for a given key, description and state manager.

Parameters

context

The Android application context.

key

The given key used to identify the button glyph.

desc

The given accessible descripiton.

image

The, likely null, custom image to use instead of the icon font face.

handler

A handler to use instead of emitting an event.


constructor(context: Context, key: Int, desc: Int, image: Drawable, eventType: String, handler: OnClickListener)

Builds a button state object for a given key, description and state manager.

Parameters

context

The Android application context.

key

The given key used to identify the button glyph.

desc

The given accessible descripiton.

image

The, likely null, custom image to use instead of the icon font face.

eventType

The event type to emit for this button state.

handler

A handler to invoke when the event type is null.