createFromText
Creates a [FillableData] instance from a [CharSequence].
createFromText
Function
Common
expect fun FillableData.Companion.createFromText(textValue: CharSequence): FillableData?
Creates a FillableData instance from a CharSequence.
This function is used to wrap a text value for autofill purposes.
Parameters
| textValue | The text data to be used for autofill. |
Returns
A FillableData object containing the text data, or null if the platform does not support autofill. |
Android
actual fun FillableData.Companion.createFromText(textValue: CharSequence): FillableData?
Creates a FillableData instance from a CharSequence.
This function is used to wrap a text value for autofill purposes. On Android, it creates an
AutofillValue that contains the provided text.
Parameters
| textValue | The text data to be used for autofill. |
Returns
A FillableData object containing the text data, or null if the platform version is lower than Build.VERSION_CODES.O. |