AutofillEventListener

Autofill event listener interface. Used to communicate key events from Autofill back to the app.

Functions

Link copied to clipboard
abstract fun onAcceptGeneratedPassword(originalUrl: String)

Called when user chooses to use a generated password when prompted.

Link copied to clipboard
abstract fun onAutofillStateChange()

Called when a change was detected in the autofill state, such that reloading the page may be necessary.

Called when the Email Protection in-context flow ends, for any reason

Link copied to clipboard
abstract fun onNoCredentialsChosenForAutofill(originalUrl: String)

Called when user chooses not to autofill any login credential to a web page.

Link copied to clipboard
abstract fun onRejectGeneratedPassword(originalUrl: String)

Called when user chooses not to use a generated password when prompted.

Link copied to clipboard
abstract fun onSavedCredentials(credentials: LoginCredentials)

Called when a login credential was saved. This API could be used to show visual confirmation to the user.

Called when user chooses to sign up for in-context email protection.

Link copied to clipboard
abstract fun onShareCredentialsForAutofill(originalUrl: String, selectedCredentials: LoginCredentials)

Called when user chooses to autofill a login credential to a web page.

Link copied to clipboard
abstract fun onUpdatedCredentials(credentials: LoginCredentials)

Called when a login credential was updated. This API could be used to show visual confirmation to the user.

Link copied to clipboard
abstract fun onUseEmailProtectionPersonalAddress(originalUrl: String, duckAddress: String)

Called when user chooses to autofill their personal duck address.

Link copied to clipboard
abstract fun onUseEmailProtectionPrivateAlias(originalUrl: String, duckAddress: String)

Called when user chooses to autofill a private duck address (private alias).