remote-config / com.rakuten.tech.mobile.remoteconfig / RemoteConfig

RemoteConfig

abstract class RemoteConfig

Main entry point for the Remote Config SDK. Should be accessed via RemoteConfig.instance.

Functions

getBoolean abstract fun getBoolean(key: String, fallback: Boolean): Boolean
Get a boolean from the Cached config. If the key does not exist, fallback will be returned.
getConfig abstract fun getConfig(): Map<String, String>
Get the cached config.
getNumber abstract fun <T : Number> getNumber(key: String, fallback: T): T
Get a number from the Cached config. If the key does not exist, fallback will be returned. Number will attempt to be converted to type T. If the conversion fails (i.e. the value in the cached config is a not a number) then fallback will be returned.
getString abstract fun getString(key: String, fallback: String): String
Get a string from the Cached config. If the key does not exist, fallback will be returned.

Companion Object Functions

instance fun instance(): RemoteConfig
Instance of RemoteConfig.