FillableData

Interface

Common
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

Common
val textValue: CharSequence?

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

Common
val booleanValue: Boolean?

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

Common
val listIndexValue: Int?

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

Common
val dateMillisValue: Long?

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

Functions

fun getListIndexOrDefault(defaultValue: Int): Int

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

fun getDateMillisOrDefault(defaultValue: Long): Long

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