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 methods

static @NonNull ModifiersBuilders.Semantics.Builder

Returns a new Builder.

@NonNull String

Gets the content description associated with this element.

Public methods

builder

@NonNull
public static ModifiersBuilders.Semantics.Builder builder()

Returns a new Builder.

getContentDescription

@NonNull
public 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.