public interface

ModifiersProto.SemanticsOrBuilder

 androidx.wear.protolayout.proto.ModifiersProto.SemanticsOrBuilder

Subclasses:

ModifiersProto.Semantics, ModifiersProto.Semantics.Builder

Summary

Methods
public TypesProto.StringPropgetContentDescription()

 The content description associated with this element.

public java.lang.StringgetObsoleteContentDescription()

 The content description associated with this element.

public com.google.protobuf.ByteStringgetObsoleteContentDescriptionBytes()

 The content description associated with this element.

public ModifiersProto.SemanticsRolegetRole()

 The type of user interface element.

public intgetRoleValue()

 The type of user interface element.

public TypesProto.StringPropgetStateDescription()

 The localized state description of the semantics node.

public booleanhasContentDescription()

 The content description associated with this element.

public booleanhasStateDescription()

 The localized state description of the semantics node.

Methods

public java.lang.String getObsoleteContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Returns:

The obsoleteContentDescription.

public com.google.protobuf.ByteString getObsoleteContentDescriptionBytes()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Returns:

The bytes for obsoleteContentDescription.

public boolean hasContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

Returns:

Whether the contentDescription field is set.

public TypesProto.StringProp getContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

Returns:

The contentDescription.

public int getRoleValue()

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Returns:

The enum numeric value on the wire for role.

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Returns:

The role.

public boolean hasStateDescription()

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

Returns:

Whether the stateDescription field is set.

public TypesProto.StringProp getStateDescription()

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

Returns:

The stateDescription.