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
| fetchAndApplyConfig | abstract suspend fun fetchAndApplyConfig(): Map<String, String>This method is the manual trigger for fetching config values. Config values are applied directly after fetch. |
| getBoolean | abstract fun getBoolean(key: String, fallback: Boolean): BooleanGet 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): TGet 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): StringGet a string from the Cached config. If the key does not exist, fallback will be returned. |
Companion Object Functions
| instance | fun instance(): RemoteConfigInstance of RemoteConfig. |