ModifiersBuilders.Semantics

Added in 1.0.0
Deprecated in 1.2.0

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 functions

String

Gets the content description associated with this element.

Public functions

getContentDescription

Added in 1.0.0
Deprecated in 1.2.0
fun getContentDescription(): String

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.