ModifiersBuilders.Semantics

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

Public constructors

Public methods

@NonNull String

Gets the content description associated with this element.

Public constructors

Semantics

public final Semantics()

Public methods

getContentDescription

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.