Callback

interface Callback

Browser Autofill callbacks

Functions

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

Called when we've been asked which credentials we have available to autofill, but the answer is none.

Link copied to clipboard
abstract suspend fun onCredentialsAvailableToInject(originalUrl: String, 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(currentUrl: String, 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(originalUrl: String, 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.