public interface

ModifiersProto.ModifiersOrBuilder

 androidx.wear.protolayout.proto.ModifiersProto.ModifiersOrBuilder

Subclasses:

ModifiersProto.Modifiers, ModifiersProto.Modifiers.Builder

Summary

Methods
public ModifiersProto.BackgroundgetBackground()

 The background (with optional corner radius) of the modified element.

public ModifiersProto.BordergetBorder()

 The border of the modified element.

public ModifiersProto.ClickablegetClickable()

 The clickable property of the modified element.

public ModifiersProto.AnimatedVisibilitygetContentUpdateAnimation()

 The content transition of an element.

public TypesProto.BoolPropgetHidden()

 Whether the attached element is hidden, or visible.

public java.lang.StringgetId()

 The optional identifier for the layout element.

public com.google.protobuf.ByteStringgetIdBytes()

 The optional identifier for the layout element.

public ModifiersProto.ElementMetadatagetMetadata()

 Metadata about an element.

public TypesProto.FloatPropgetOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.PaddinggetPadding()

 The padding of the modified element.

public ModifiersProto.SemanticsgetSemantics()

 The semantics of the modified element.

public ModifiersProto.TransformationgetTransformation()

 The transformation applied to the element post-layout

public TypesProto.BoolPropgetVisible()

 Whether the attached element is visible, or hidden.

public booleanhasBackground()

 The background (with optional corner radius) of the modified element.

public booleanhasBorder()

 The border of the modified element.

public booleanhasClickable()

 The clickable property of the modified element.

public booleanhasContentUpdateAnimation()

 The content transition of an element.

public booleanhasHidden()

 Whether the attached element is hidden, or visible.

public booleanhasMetadata()

 Metadata about an element.

public booleanhasOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public booleanhasPadding()

 The padding of the modified element.

public booleanhasSemantics()

 The semantics of the modified element.

public booleanhasTransformation()

 The transformation applied to the element post-layout

public booleanhasVisible()

 Whether the attached element is visible, or hidden.

Methods

public boolean hasClickable()

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

Returns:

Whether the clickable field is set.

public ModifiersProto.Clickable getClickable()

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

Returns:

The clickable.

public boolean hasSemantics()

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

Returns:

Whether the semantics field is set.

public ModifiersProto.Semantics getSemantics()

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

Returns:

The semantics.

public boolean hasPadding()

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

Returns:

Whether the padding field is set.

public ModifiersProto.Padding getPadding()

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

Returns:

The padding.

public boolean hasBorder()

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

Returns:

Whether the border field is set.

public ModifiersProto.Border getBorder()

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

Returns:

The border.

public boolean hasBackground()

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

Returns:

Whether the background field is set.

public ModifiersProto.Background getBackground()

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

Returns:

The background.

public boolean hasMetadata()

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

Returns:

Whether the metadata field is set.

public ModifiersProto.ElementMetadata getMetadata()

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

Returns:

The metadata.

public boolean hasContentUpdateAnimation()

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

Returns:

Whether the contentUpdateAnimation field is set.

public ModifiersProto.AnimatedVisibility getContentUpdateAnimation()

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

Returns:

The contentUpdateAnimation.

public boolean hasHidden()

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

Returns:

Whether the hidden field is set.

public TypesProto.BoolProp getHidden()

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

Returns:

The hidden.

public java.lang.String getId()

 The optional identifier for the layout element.
 
string id = 9;

Returns:

The id.

public com.google.protobuf.ByteString getIdBytes()

 The optional identifier for the layout element.
 
string id = 9;

Returns:

The bytes for id.

public boolean hasVisible()

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

Returns:

Whether the visible field is set.

public TypesProto.BoolProp getVisible()

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

Returns:

The visible.

public boolean hasTransformation()

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

Returns:

Whether the transformation field is set.

public ModifiersProto.Transformation getTransformation()

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

Returns:

The transformation.

public boolean hasOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

Returns:

Whether the opacity field is set.

public TypesProto.FloatProp getOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

Returns:

The opacity.