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

CustomDomains

object CustomDomains (source)

Contains functionality to manage custom domains for auto-completion.

Functions

add

fun add(context: Context, domain: String): Unit

Adds the provided domain to preferences.

load

fun load(context: Context): List<String>

Loads the previously added/saved custom domains from preferences.

remove

fun remove(context: Context, domains: List<String>): Unit

Removes the provided domain from preferences.

save

fun save(context: Context, domains: List<String>): Unit

Saves the provided domains to preferences.