ContentType
Function
Android
fun ContentType(contentHint: String): ContentType
Create a custom ContentType
with contentHint
.
This creates a ContentType
with the parameter contentHint
passed in. This API can be used if
the Autofill hint is not present in the list of contentType
s provided by Compose.
For example,
ContentType(androidx.autofill.HintConstants.AUTOFILL_HINT_FLIGHT_CONFIRMATION_CODE)
can be used
to create a new flight confirmation code hint.