Interface

FillableData

Represents a single piece of data for autofill purposes.

Source set: Common
public interface FillableData

Represents a single piece of data for autofill purposes.

An instance of FillableData is expected to hold a value of a single specific type. Consumers can use the corresponding property to retrieve the value. For any given instance, only the property that matches the underlying data's type will return a non-null value. All other properties will return null.

Properties

textValue

Source set: Common
public val textValue: CharSequence?

The CharSequence (text) representation of the data, or null if none is available.

booleanValue

Source set: Common
public val booleanValue: Boolean?

The Boolean representation of the data, or null if none is available.

listIndexValue

Source set: Common
public val listIndexValue: Int?

The Int (integer) representation of the data, or null if none is available.

dateMillisValue

Source set: Common
public val dateMillisValue: Long?

The date in milliseconds since epoch, or null if none is available.

Functions

getListIndexOrDefault

Source set: Common
public fun getListIndexOrDefault(defaultValue: Int): Int

Returns the list index value if it is available, otherwise returns the defaultValue.

getDateMillisOrDefault

Source set: Common
public fun getDateMillisOrDefault(defaultValue: Long): Long

Returns the date in milliseconds value if it is available, otherwise returns the defaultValue.

Members

Companion

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