Function

createFromDateMillis

Creates a FillableData instance from a Long.

createFromDateMillis

Source set: Android
public 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.

Return

A FillableData object containing the long data, or null if the platform version is lower than Build.VERSION_CODES.O.

createFromDateMillis

Source set: Common
public 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.

Return

A FillableData object containing the long data, or null if the platform does not support autofill.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: