ModifiersBuilders.Semantics

Added in 1.0.0
Deprecated in 1.2.0

public final class ModifiersBuilders.Semantics


A modifier for an element which has accessibility semantics associated with it. This should generally be used sparingly, and in most cases should only be applied to the top-level layout element or to Clickables.

Summary

Nested types

Builder for Semantics

Public methods

@NonNull String

Gets the content description associated with this element.

Public methods

getContentDescription

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull String getContentDescription()

Gets the content description associated with this element. This will be dictated when the element is focused by the screen reader. Intended for testing purposes only.