ModifiersBuilders.Clickable.Builder

public static final class ModifiersBuilders.Clickable.Builder
extends Object

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


Builder for ModifiersBuilders.Clickable

Summary

Public methods

ModifiersBuilders.Clickable build()

Builds an instance from accumulated values.

ModifiersBuilders.Clickable.Builder setId(String id)

Sets the ID associated with this action.

ModifiersBuilders.Clickable.Builder setOnClick(ActionBuilders.Action.Builder onClickBuilder)

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

ModifiersBuilders.Clickable.Builder setOnClick(ActionBuilders.Action onClick)

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

Inherited methods

Public methods

build

public ModifiersBuilders.Clickable build ()

Builds an instance from accumulated values.

Returns
ModifiersBuilders.Clickable

setId

public ModifiersBuilders.Clickable.Builder setId (String id)

Sets the ID associated with this action.

Parameters
id String

Returns
ModifiersBuilders.Clickable.Builder

setOnClick

public ModifiersBuilders.Clickable.Builder setOnClick (ActionBuilders.Action.Builder onClickBuilder)

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

Parameters
onClickBuilder ActionBuilders.Action.Builder

Returns
ModifiersBuilders.Clickable.Builder

setOnClick

public ModifiersBuilders.Clickable.Builder setOnClick (ActionBuilders.Action onClick)

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

Parameters
onClick ActionBuilders.Action

Returns
ModifiersBuilders.Clickable.Builder