android-components / mozilla.components.browser.domains / CustomDomains

CustomDomains

object CustomDomains (source)

Contains functionality to manage custom domains for auto-completion.

Functions

Name Summary
add fun add(context: <ERROR CLASS>, domain: String): Unit
Adds the provided domain to preferences.
load fun load(context: <ERROR CLASS>): List<String>
Loads the previously added/saved custom domains from preferences.
remove fun remove(context: <ERROR CLASS>, domains: List<String>): Unit
Removes the provided domain from preferences.
save fun save(context: <ERROR CLASS>, domains: List<String>): Unit
Saves the provided domains to preferences.