NubrickExperiment
定義
public class NubrickExperiment {
// dispatching an event to the experiment
public fun dispatch(event: NubrickEvent)
// embedding an experiment for jetpack compose view
@Composable public fun Embedding(
id: String,
modifier: Modifier = Modifier,
onEvent: ((event: Event) -> Unit)? = null,
content: (@Composable() (state: EmbeddingLoadingState) -> Unit)? = null
)
// remote config
public fun remoteConfig(id: String): io.nubrick.nubrick.remoteconfig.RemoteConfig
// remote config as a compose view
@Composable public fun RemoteConfig(id: String, content: @Composable (RemoteConfigLoadingState) -> Unit)
// overlay
@Composable public fun Overlay()
}.dispatch
.Embedding
.Embedding with an event handler
.Embedding with a custom content
Last updated