android-components / / CustomDomains


object CustomDomains (source)

Contains functionality to manage custom domains for auto-completion.


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.

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.