interface SettingsProvider
(source)
A generic interface for implementations that can provide settings values.
abstract fun containsKey(key: String): Boolean
Returns true if a settings value is available for the given key. |
|
abstract fun getValue(key: String): Any
Get the setting value for the given key. |
|
abstract fun release(): Unit
Notify the provider that we finished reading from it and that it can release resources now. |
|
abstract fun update(configuration: TelemetryConfiguration): Unit
Notify this provider that we are going to read values from it. Some providers might need to perform some actions to be able to provide a fresh set of values. |
open class SharedPreferenceSettingsProvider : SettingsProvider
Setting provider implementation that reads values from SharedPreferences. |