password
public fun SemanticsPropertyReceiver.password(isPasswordObfuscated: Boolean = true): Unit
Marks this semantics node as a password field (e.g. for credentials and sensitive text input).
Setting password semantics identifies the node as a credential field, ensuring appropriate handling for credential security, autofill, and speech masking. If the password text is visually revealed to the user, pass isPasswordObfuscated as false to allow screen readers (such as TalkBack) to announce the revealed characters aloud.
Note: isPasswordObfuscated is descriptive for accessibility services and tests; it does not control the visual masking or rendering of the password text field itself (which is typically managed by the text field's visual or codepoint transformation).
Parameters
| isPasswordObfuscated | whether the password in a secure text field is currently visually masked with obfuscation characters. When false (revealed), accessibility services such as TalkBack may announce the revealed character content aloud to the user instead of masking it. |
password
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public fun SemanticsPropertyReceiver.password(): Unit