public static interface Autocomplete.LoginStorageDelegate
GeckoRuntime.setLoginStorageDelegate(org.mozilla.geckoview.Autocomplete.LoginStorageDelegate)
.Modifier and Type | Method and Description |
---|---|
default GeckoResult<Autocomplete.LoginEntry[]> |
onLoginFetch(String domain)
Request login entries for a given domain.
|
default void |
onLoginSave(Autocomplete.LoginEntry login)
Request saving or updating of the given login entry.
|
default void |
onLoginUsed(Autocomplete.LoginEntry login,
int usedFields)
Notify that the given login was used to autofill login input fields.
|
@UiThread @Nullable default GeckoResult<Autocomplete.LoginEntry[]> onLoginFetch(@NonNull String domain)
domain
- The domain string for the requested logins.GeckoResult
that completes with an array of
Autocomplete.LoginEntry
containing the existing logins for the
given domain.@UiThread default void onLoginSave(@NonNull Autocomplete.LoginEntry login)
onLoginSave
request.login
- The Autocomplete.LoginEntry
as confirmed by the prompt
request.@UiThread default void onLoginUsed(@NonNull Autocomplete.LoginEntry login, int usedFields)
onLoginFetch(java.lang.String)
.login
- The Autocomplete.LoginEntry
that was used for the
autofilling.usedFields
- The login entry fields used for autofilling.
A combination of Autocomplete.UsedField
.