ModifiersBuilders.Clickable

public static final class ModifiersBuilders.Clickable
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.ModifiersBuilders.Clickable


A modifier for an element which can have associated Actions for click events. When an element with a ClickableModifier is clicked it will fire the associated action.

Summary

Nested classes

class ModifiersBuilders.Clickable.Builder

Builder for ModifiersBuilders.Clickable  

Public methods

static ModifiersBuilders.Clickable.Builder builder()

Returns a new ModifiersBuilders.Clickable.Builder.

String getId()

Gets the ID associated with this action.

ActionBuilders.Action getOnClick()

Gets the action to perform when the element this modifier is attached to is clicked.

Inherited methods

Public methods

getId

public String getId ()

Gets the ID associated with this action. Intended for testing purposes only.

Returns
String

getOnClick

public ActionBuilders.Action getOnClick ()

Gets the action to perform when the element this modifier is attached to is clicked. Intended for testing purposes only.

Returns
ActionBuilders.Action