AutofillDomain

Defines commands and events for Autofill.

Official doc

Functions

Link copied to clipboard

Emitted when an address form is filled.

Link copied to clipboard
suspend fun disable(): DisableResponse

Disables autofill domain notifications.

Link copied to clipboard
suspend fun enable(): EnableResponse

Enables autofill domain notifications.

Link copied to clipboard
fun events(): Flow<AutofillEvent>

Subscribes to all events related to this domain.

Link copied to clipboard
suspend fun setAddresses(addresses: List<Address>): SetAddressesResponse

Set addresses so that developers can verify their forms implementation.

Link copied to clipboard
inline suspend fun trigger(fieldId: BackendNodeId, card: CreditCard, optionalArgs: TriggerRequest.Builder.() -> Unit = {}): TriggerResponse

Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.