Callback

interface Callback

Browser Autofill callbacks

Functions

Link copied to clipboard
abstract suspend fun onCredentialsAvailableToInject(autofillWebMessageRequest: AutofillWebMessageRequest, credentials: List<LoginCredentials>, triggerType: LoginTriggerType)

Called when we've determined we have credentials we can offer to autofill for the user. When this is called, we should present the list to the user for them to choose which one, if any, to autofill.

Link copied to clipboard
abstract suspend fun onCredentialsAvailableToSave(autofillWebMessageRequest: AutofillWebMessageRequest, credentials: LoginCredentials)

Called when there are login credentials available to be saved. When this is called, we'd typically want to prompt the user if they want to save the credentials.

Link copied to clipboard
abstract fun onCredentialsSaved(savedCredentials: LoginCredentials)

Called when credentials have been saved, and we want to show the user some visual confirmation.

Link copied to clipboard
abstract suspend fun onGeneratedPasswordAvailableToUse(autofillWebMessageRequest: AutofillWebMessageRequest, username: String?, generatedPassword: String)

Called when we've generated a password for the user, and we want to offer it to them to use. When this is called, we should present the generated password to the user for them to choose whether to use it or not.

Link copied to clipboard
abstract fun showNativeChooseEmailAddressPrompt(autofillWebMessageRequest: AutofillWebMessageRequest)

Called when the user should be shown prompt to choose an email address to use for email protection autofill

Called when the user should be shown prompt to sign up for Email Protection