android-components / / LoginStorageDelegate


interface LoginStorageDelegate (source)

Used to handle Login storage so that the underlying engine doesn’t have to. An instance of this should be attached to the Gecko runtime in order to be used.


Name Summary
onLoginFetch abstract fun onLoginFetch(domain: String): Deferred<List<Login>>
Given a domain, returns a GeckoResult of the matching LoginEntrys found in loginStorage.
onLoginSave abstract fun onLoginSave(login: Login): Unit
Called when a login should be saved or updated.
onLoginUsed abstract fun onLoginUsed(login: Login): Unit
Called after a login has been autofilled into web content.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
GeckoLoginStorageDelegate class GeckoLoginStorageDelegate : LoginStorageDelegate
LoginStorageDelegate implementation.