accessibleName

Sets the component's accessible name - the short localized string assistive technologies announce for it. null clears any name this modifier set. Mirrors Compose's semantics { contentDescription = ... }.

A component holds no name of its own until one is set: its accessible context derives one instead, from the text it displays, a titled border, or the caption labeling it. Removing this modifier restores that derivation, not the string it derived. A name the component was built carrying is its own, and is restored as such. A name an accessible context cannot tell from the derived one is restored by derivation.

Return

this modifier with the accessible name declared on it.

Parameters

name

the accessible name to advertise, or null to clear it.

See also