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

Domains

object Domains (source)

Contains functionality to access domain lists shipped as part of this module’s assets.

Functions

Name Summary
load fun load(context: <ERROR CLASS>): List<String>
Loads the domains applicable to the app’s locale, plus the domains in the ‘global’ list.

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.