DebugStaticConfigurationEditor

class DebugStaticConfigurationEditor(context: Context)

Allows editing static configuration values for development purposes.

In order for the values set with this class to have effect, the product must make sure DebugStaticConfigurationProvider is used before other ComposableStaticConfigurationProviders when retrieving configuration values.

Constructors

Link copied to clipboard
fun DebugStaticConfigurationEditor(context: Context)

Functions

Link copied to clipboard
fun clear()

Clears all previously configured static configuration values.

fun clear(key: StaticConfigurationKey)

Clear a previous configured static configuration value identified by key.

Link copied to clipboard
operator fun get(key: BooleanStaticConfigurationKey): Boolean?

Returns the static Boolean configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: DoubleStaticConfigurationKey): Double?

Returns the static Double configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: FloatStaticConfigurationKey): Float?

Returns the static Float configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: IntStaticConfigurationKey): Int?

Returns the static Int configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: LongStaticConfigurationKey): Long?

Returns the static Long configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptBooleanStaticConfigurationKey): Boolean?

Returns the static Boolean? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptDoubleStaticConfigurationKey): Double?

Returns the static Double? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptFloatStaticConfigurationKey): Float?

Returns the static Float? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptIntStaticConfigurationKey): Int?

Returns the static Int? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptLongStaticConfigurationKey): Long?

Returns the static Long? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: OptStringStaticConfigurationKey): String?

Returns the static String? configuration value identified by key, if configured. Returns null if the configuration value is not configured.

operator fun get(key: StringStaticConfigurationKey): String?

Returns the static String configuration value identified by key, if configured. Returns null if the configuration value is not configured.

Link copied to clipboard
operator fun set(key: BooleanStaticConfigurationKey, value: Boolean?)

Sets a static Boolean configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: DoubleStaticConfigurationKey, value: Double?)

Sets a static Double configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: FloatStaticConfigurationKey, value: Float?)

Sets a static Float configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: IntStaticConfigurationKey, value: Int?)

Sets a static Int configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: LongStaticConfigurationKey, value: Long?)

Sets a static Long configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptBooleanStaticConfigurationKey, value: Boolean?)

Sets a static Boolean? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptDoubleStaticConfigurationKey, value: Double?)

Sets a static Double? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptFloatStaticConfigurationKey, value: Float?)

Sets a static Float? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptIntStaticConfigurationKey, value: Int?)

Sets a static Int? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptLongStaticConfigurationKey, value: Long?)

Sets a static Long? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: OptStringStaticConfigurationKey, value: String?)

Sets a static String? configuration value identified by key to the given value. If value is null, any previously configured value is cleared.

operator fun set(key: StringStaticConfigurationKey, value: String?)

Sets a static String configuration value identified by key to the given value. If value is null, any previously configured value is cleared.