public final class

ModifiersBuilders.Clickable

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Clickable

Overview

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

Methods
public static ModifiersBuilders.ClickablefromProto(ModifiersProto.Clickable proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public java.lang.StringgetId()

Gets the ID associated with this action.

public DimensionBuilders.DpPropgetMinimumClickableHeight()

Gets the minimum height of the clickable area.

public DimensionBuilders.DpPropgetMinimumClickableWidth()

Gets the minimum width of the clickable area.

public ActionBuilders.ActiongetOnClick()

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

public booleanisVisualFeedbackEnabled()

Gets whether the click visual feedback (such as a ripple) should be enabled.

public ModifiersProto.ClickabletoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public java.lang.String getId()

Gets the ID associated with this action.

public ActionBuilders.Action getOnClick()

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

public DimensionBuilders.DpProp getMinimumClickableWidth()

Gets the minimum width of the clickable area.

The default value is 48dp, following the Material design accessibility guideline. Note that this value does not affect the layout, so the minimum clickable width is not guaranteed unless there is enough space around the element within its parent bounds.

public DimensionBuilders.DpProp getMinimumClickableHeight()

Gets the minimum height of the clickable area.

The default value is 48dp, following the Material design accessibility guideline. Note that this value does not affect the layout, so the minimum clickable height is not guaranteed unless there is enough space around the element within its parent bounds.

public boolean isVisualFeedbackEnabled()

Gets whether the click visual feedback (such as a ripple) should be enabled. Defaults to true.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static ModifiersBuilders.Clickable fromProto(ModifiersProto.Clickable proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ModifiersProto.Clickable toProto()

Returns the internal proto instance.

public java.lang.String toString()