ResourceStaticConfigurationProvider
class ResourceStaticConfigurationProvider(context: Context) : ComposableStaticConfigurationProvider
Content copied to clipboard
A static configuration provider that loads its values from Android resources.
Boolean values are loaded from <bool>
items, Integer values from <integer>
items, and Float, Long, Double and String values from <string>
items.
Note:Long values that are outside the range of Integer, and Double values that are outside the range of a Float, must be in quotations. They will be interpreted as a String and subsequently be translated correctly to a Long or Double, respectively. Lists of values are loaded from <array>
resources. Empty items in arrays are ignored, apart from boolean values, which set to false
.
A configuration key is the name of a resource.
Constructors
Functions
Link copied to clipboard
open operator override fun get(key: BooleanListStaticConfigurationKey): List<Boolean>?
Content copied to clipboard
open operator override fun get(key: BooleanStaticConfigurationKey): Boolean?
Content copied to clipboard
open operator override fun get(key: DoubleListStaticConfigurationKey): List<Double>?
Content copied to clipboard
open operator override fun get(key: DoubleStaticConfigurationKey): Double?
Content copied to clipboard
open operator override fun get(key: FloatListStaticConfigurationKey): List<Float>?
Content copied to clipboard
open operator override fun get(key: IntListStaticConfigurationKey): List<Int>?
Content copied to clipboard
open operator override fun get(key: LongListStaticConfigurationKey): List<Long>?
Content copied to clipboard
open operator override fun get(key: OptBooleanListStaticConfigurationKey): List<Boolean>?
Content copied to clipboard
open operator override fun get(key: OptBooleanStaticConfigurationKey): Boolean?
Content copied to clipboard
open operator override fun get(key: OptDoubleListStaticConfigurationKey): List<Double>?
Content copied to clipboard
open operator override fun get(key: OptDoubleStaticConfigurationKey): Double?
Content copied to clipboard
open operator override fun get(key: OptFloatListStaticConfigurationKey): List<Float>?
Content copied to clipboard
open operator override fun get(key: OptFloatStaticConfigurationKey): Float?
Content copied to clipboard
open operator override fun get(key: OptIntListStaticConfigurationKey): List<Int>?
Content copied to clipboard
open operator override fun get(key: OptLongListStaticConfigurationKey): List<Long>?
Content copied to clipboard
open operator override fun get(key: OptLongStaticConfigurationKey): Long?
Content copied to clipboard
open operator override fun get(key: OptStringListStaticConfigurationKey): List<String>?
Content copied to clipboard
open operator override fun get(key: OptStringStaticConfigurationKey): String?
Content copied to clipboard
open operator override fun get(key: StringListStaticConfigurationKey): List<String>?
Content copied to clipboard
open operator override fun get(key: StringStaticConfigurationKey): String?
Content copied to clipboard