Composables UI is out: our new component library for Compose Multiplatform ->
Composable Function

RemoteStateLayout

A layout that manages and displays multiple states defined by a RemoteEnum.

RemoteStateLayout

Source set: Android
@RemoteComposable
@Composable
public fun <T : Enum<T>> RemoteStateLayout(
    currentState: RemoteEnum<T>,
    modifier: RemoteModifier = RemoteModifier,
    content: @Composable (T) -> Unit,
)

A layout that manages and displays multiple states defined by a RemoteEnum.

This component ensures that all possible states defined in the RemoteEnum are composed, while the underlying remote rendering system handles the visibility and transitions between them based on the currentState.

Parameters

currentState The state machine governing the available states and the current active state.
modifier The RemoteModifier to be applied to this layout.
content A composable lambda that defines the UI for each state T.

RemoteStateLayout

Source set: Android
@RemoteComposable
@Composable
public fun RemoteStateLayout(
    currentState: RemoteBoolean,
    modifier: RemoteModifier = RemoteModifier,
    content: @Composable (Boolean) -> Unit,
)

A layout that manages and displays two states defined by a RemoteBoolean.

This component ensures that both possible states are composed, while the underlying remote rendering system handles the visibility and transitions between them based on the currentState.

Parameters

currentState The state machine governing the available states and the current active state.
modifier The RemoteModifier to be applied to this layout.
content A composable lambda that defines the UI for each state Boolean.

RemoteStateLayout

Source set: Android
@RemoteComposable
@Composable
public fun RemoteStateLayout(
    currentState: RemoteInt,
    vararg states: Int,
    modifier: RemoteModifier = RemoteModifier,
    content: @Composable (Int) -> Unit,
)

A layout that manages and displays multiple states defined by a RemoteInt.

This component ensures that all possible states defined in states are composed, while the underlying remote rendering system handles the visibility and transitions between them based on the RemoteStateMachine.currentState.

Parameters

currentState The state machine governing the available states and the current active state.
states The list of integer states that this layout can display.
modifier The RemoteModifier to be applied to this layout.
content A composable lambda that defines the UI for each state Int.

Last updated: