android-components / mozilla.components.browser.engine.gecko.autofill / GeckoLoginDelegateWrapper

GeckoLoginDelegateWrapper

class GeckoLoginDelegateWrapper : Delegate (source)

This class exists only to convert incoming LoginEntry arguments into Logins, then forward them to storageDelegate. This allows us to avoid duplicating LoginStorageDelegate code between different versions of GeckoView, by duplicating this wrapper instead.

Constructors

Name Summary
<init> GeckoLoginDelegateWrapper(storageDelegate: LoginStorageDelegate)
This class exists only to convert incoming LoginEntry arguments into Logins, then forward them to storageDelegate. This allows us to avoid duplicating LoginStorageDelegate code between different versions of GeckoView, by duplicating this wrapper instead.

Functions

Name Summary
onLoginFetch fun onLoginFetch(domain: String): GeckoResult<Array<LoginEntry>>?
onLoginSave fun onLoginSave(login: LoginEntry): Unit
onLoginUsed fun onLoginUsed(login: LoginEntry): Unit
This method has not yet been implemented in GV. Once it has, we should add an override to it here.

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.