android-components / mozilla.components.browser.engine.gecko.integration / LocaleSettingUpdater

LocaleSettingUpdater

class LocaleSettingUpdater : SettingUpdater<Array<String>> (source)

Class to set the locales setting for geckoview, updating from the locale of the device.

Constructors

Name Summary
<init> LocaleSettingUpdater(context: <ERROR CLASS>, runtime: GeckoRuntime)
Class to set the locales setting for geckoview, updating from the locale of the device.

Properties

Name Summary
value var value: Array<String>
The setter for this property should change the GeckoView setting.

Inherited Properties

Name Summary
enabled var enabled: Boolean
Toggle the automatic tracking of a setting derived from the device state.

Functions

Name Summary
findValue fun findValue(): Array<String>
Find the value of the setting from the device state. This is setting specific.
registerForUpdates fun registerForUpdates(): Unit
Register for updates from the device state. This is setting specific.
unregisterForUpdates fun unregisterForUpdates(): Unit
Unregister for updates from the device state.

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.