OtpFieldAccessibility
class OtpFieldAccessibility(val label: String, val errorMessage: String, val progressDescription: (OtpProgress) -> String, val inputRejectedMessage: (OtpInputRejection) -> String)(source)
Required, localized accessibility text for an OTP field. There are deliberately no defaults so the component cannot be shown without it.
Constructors
Link copied to clipboard
constructor(label: String, errorMessage: String, progressDescription: (OtpProgress) -> String, inputRejectedMessage: (OtpInputRejection) -> String)
Properties
Link copied to clipboard
shown below the cells and exposed as the semantics error while OtpState.isError is true.
Link copied to clipboard
text for a rejected multi-digit input (see OtpInputRejection), for example "Code has 4 digits, but 6 are expected". Localize it with plural rules from the counts. It is shown below the field and announced once, like the error message, but it does not put the field into an error state. It must not contain the digits.
Link copied to clipboard
state description such as "3 of 6 digits entered". Say "characters" rather than "digits" for OtpCharset.ALPHANUMERIC; the counts include letters.