Package 

Class ButtonState


  • 
    public 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.

    • Constructor Detail

      • ButtonState

        ButtonState(Context context, int key, int desc, Drawable image, String eventType)
        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.
      • ButtonState

        ButtonState(Context context, int key, int desc, Drawable image, View.OnClickListener handler)
        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.
      • ButtonState

        ButtonState(Context context, int key, int desc, Drawable image, String eventType, View.OnClickListener handler)
        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.