setContentDescription

open override fun setContentDescription(contentDescription: CharSequence?)

Sets the contentDescription for this view, which is announced when a new hint is set.

If called multiple times before the next hint appears, only the most recent contentDescription is announced.

Note: This does not immediately change the view’s contentDescription. The message is cached until a new hint is displayed via setText.

Parameters

contentDescription

The custom accessibility message to announce with the next hint.