public final class

ModifiersProto.Clickable

extends <any>

implements ModifiersProto.ClickableOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ModifiersProto.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.
 
Protobuf type androidx.wear.protolayout.proto.Clickable

Summary

Fields
public static final intID_FIELD_NUMBER

public static final intMINIMUM_CLICKABLE_HEIGHT_FIELD_NUMBER

public static final intMINIMUM_CLICKABLE_WIDTH_FIELD_NUMBER

public static final intON_CLICK_FIELD_NUMBER

public static final intVISUAL_FEEDBACK_ENABLED_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static ModifiersProto.ClickablegetDefaultInstance()

public java.lang.StringgetId()

 The ID associated with this action.

public com.google.protobuf.ByteStringgetIdBytes()

 The ID associated with this action.

public DimensionProto.DpPropgetMinimumClickableHeight()

 The minimum height of the clickable area.

public DimensionProto.DpPropgetMinimumClickableWidth()

 The minimum width of the clickable area.

public ActionProto.ActiongetOnClick()

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

public ModifiersProto.Clickable.OptionalVisualFeedbackEnabledCasegetOptionalVisualFeedbackEnabledCase()

public booleangetVisualFeedbackEnabled()

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

public booleanhasMinimumClickableHeight()

 The minimum height of the clickable area.

public booleanhasMinimumClickableWidth()

 The minimum width of the clickable area.

public booleanhasOnClick()

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

public booleanhasVisualFeedbackEnabled()

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

public static ModifiersProto.Clickable.BuildernewBuilder()

public static ModifiersProto.Clickable.BuildernewBuilder(ModifiersProto.Clickable prototype)

public static ModifiersProto.ClickableparseDelimitedFrom(java.io.InputStream input)

public static ModifiersProto.ClickableparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.ClickableparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.ClickableparseFrom(java.nio.ByteBuffer data)

public static ModifiersProto.ClickableparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.ClickableparseFrom(com.google.protobuf.ByteString data)

public static ModifiersProto.ClickableparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.ClickableparseFrom(com.google.protobuf.CodedInputStream input)

public static ModifiersProto.ClickableparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.ClickableparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int ID_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER

public static final int MINIMUM_CLICKABLE_WIDTH_FIELD_NUMBER

public static final int MINIMUM_CLICKABLE_HEIGHT_FIELD_NUMBER

public static final int VISUAL_FEEDBACK_ENABLED_FIELD_NUMBER

Methods

public ModifiersProto.Clickable.OptionalVisualFeedbackEnabledCase getOptionalVisualFeedbackEnabledCase()

public java.lang.String getId()

 The ID associated with this action.
 
string id = 1;

Returns:

The id.

public com.google.protobuf.ByteString getIdBytes()

 The ID associated with this action.
 
string id = 1;

Returns:

The bytes for id.

public boolean hasOnClick()

 The action to perform when the element this modifier is attached to is
 clicked.
 
.androidx.wear.protolayout.proto.Action on_click = 2;

public ActionProto.Action getOnClick()

 The action to perform when the element this modifier is attached to is
 clicked.
 
.androidx.wear.protolayout.proto.Action on_click = 2;

public boolean hasMinimumClickableWidth()

 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.
 
.androidx.wear.protolayout.proto.DpProp minimum_clickable_width = 3;

public DimensionProto.DpProp getMinimumClickableWidth()

 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.
 
.androidx.wear.protolayout.proto.DpProp minimum_clickable_width = 3;

public boolean hasMinimumClickableHeight()

 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.
 
.androidx.wear.protolayout.proto.DpProp minimum_clickable_height = 4;

public DimensionProto.DpProp getMinimumClickableHeight()

 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.
 
.androidx.wear.protolayout.proto.DpProp minimum_clickable_height = 4;

public boolean hasVisualFeedbackEnabled()

 Whether the click visual feedback (such as a ripple) should be enabled.
 Defaults to true.
 
bool visual_feedback_enabled = 5;

Returns:

Whether the visualFeedbackEnabled field is set.

public boolean getVisualFeedbackEnabled()

 Whether the click visual feedback (such as a ripple) should be enabled.
 Defaults to true.
 
bool visual_feedback_enabled = 5;

Returns:

The visualFeedbackEnabled.

public static ModifiersProto.Clickable parseFrom(java.nio.ByteBuffer data)

public static ModifiersProto.Clickable parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable parseFrom(com.google.protobuf.ByteString data)

public static ModifiersProto.Clickable parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable parseDelimitedFrom(java.io.InputStream input)

public static ModifiersProto.Clickable parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable parseFrom(com.google.protobuf.CodedInputStream input)

public static ModifiersProto.Clickable parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Clickable.Builder newBuilder()

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static ModifiersProto.Clickable getDefaultInstance()

public static <any> parser()