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 |
Public methods | |
|---|---|
static
ModifiersBuilders.Clickable.Builder
|
builder()
Returns a new |
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
builder
public static ModifiersBuilders.Clickable.Builder builder ()
Returns a new ModifiersBuilders.Clickable.Builder.
| Returns | |
|---|---|
ModifiersBuilders.Clickable.Builder |
|
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 |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-02 UTC.