ButtonState

open class ButtonState

Provides a class to manage a given button state, for example, the "play" state. A given key will define the glyph on the button face. The action associated with this button state can be to emit an SDK event or invoke an operation directly via a secondary on-click listener.

Constructors

Link copied to clipboard
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.
constructor(context: Context, key: Int, desc: Int, image: Drawable, handler: OnClickListener)
Builds a button state object for a given key, description and state manager.
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.

Properties

Link copied to clipboard
The accessible button description.
Link copied to clipboard
open val eventType: String
The SDK event type associated with the button.
Link copied to clipboard
open val handler: OnClickListener
An additional on-click listener to invoke when the button is clicked.
Link copied to clipboard
open val image: Drawable
The custom image (or null if no custom image has been provided).
Link copied to clipboard
val key: Int
Link copied to clipboard
open val text: CharSequence
The text identifying a glyph to be shown on the button.