RemoteConfigVariant
定義
class RemoteConfigVariant {
val experimentId: String
val id: String
fun get(key: String): String?
fun getAsString(key: String): String?
fun getAsBoolean(key: String): Boolean?
fun getAsInt(key: String): Int?
fun getAsFloat(key: String): Float?
fun getAsDouble(key: String): Double?
@Composable
fun GetAsEmbedding(
key: String,
arguments: Any? = null,
onEvent: ((event: Event) -> Unit)? = null,
content: (@Composable (state: EmbeddingLoadingState) -> Unit)? = null
)
}
class RemoteConfig {
suspend fun fetch(): Result<RemoteConfigVariant>
}
fun interface RemoteConfigListener {
fun onResult(result: RemoteConfigResult)
}
class RemoteConfigResult {
val value: RemoteConfigVariant?
val error: Throwable?
val isSuccess: Boolean
}基本取得
Kotlin / Compose
Java
Embedding として取得(Compose)
suspend API で取得(Kotlin)
Last updated