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


abstract class SettingUpdater<T> (source)


Name Summary
<init> SettingUpdater()


Name Summary
enabled var enabled: Boolean
Toggle the automatic tracking of a setting derived from the device state.
value abstract var value: T
The setter for this property should change the GeckoView setting.


Name Summary
findValue abstract fun findValue(): T
Find the value of the setting from the device state. This is setting specific.
registerForUpdates abstract fun registerForUpdates(): Unit
Register for updates from the device state. This is setting specific.
unregisterForUpdates abstract 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.


Name Summary
LocaleSettingUpdater class LocaleSettingUpdater : SettingUpdater<Array<String>>
Class to set the locales setting for geckoview, updating from the locale of the device.