createFromDateMillis
Creates a [FillableData] instance from a [Long].
createFromDateMillis
Function
Common
expect fun FillableData.Companion.createFromDateMillis(dateMillisValue: Long): FillableData?
Creates a FillableData instance from a Long.
This function is used to wrap a long value for autofill purposes, such as a date represented in milliseconds since the epoch.
Parameters
| dateMillisValue | The long data to be used for autofill, representing a date in milliseconds since the epoch. |
Returns
A FillableData object containing the long data, or null if the platform does not support autofill. |
Android
actual fun FillableData.Companion.createFromDateMillis(dateMillisValue: Long): FillableData?
Creates a FillableData instance from a Long.
This function is used to wrap a long value for autofill purposes, such as a date represented in
milliseconds since the epoch. On Android, it creates an AutofillValue that represents a date.
Parameters
| dateMillisValue | The long data to be used for autofill, representing a date in milliseconds. |
Returns
A FillableData object containing the long data, or null if the platform version is lower than Build.VERSION_CODES.O. |