Overload 1
Android
@RemoteComposable
@Composable
public fun <T : Enum<T>> RemoteStateLayout(
state: RemoteEnum<T>,
modifier: RemoteModifier = RemoteModifier,
content: @Composable (T) -> Unit,
)
A layout that displays content based on the current value of a RemoteEnum state.
Parameters
| state | The RemoteEnum state that determines which content to display. |
| modifier | The RemoteModifier to be applied to the layout. |
| content | The composable content to be displayed for each enum state. |
RemoteStateLayout
Android
@RemoteComposable
@Composable
public fun RemoteStateLayout(
state: RemoteBoolean,
modifier: RemoteModifier = RemoteModifier,
content: @Composable (Boolean) -> Unit,
)
A layout that displays content based on the current value of a RemoteBoolean state.
Parameters
| state | The RemoteBoolean state that determines which content to display. |
| modifier | The RemoteModifier to be applied to the layout. |
| content | The composable content to be displayed for the boolean state. |
RemoteStateLayout
Android
@RemoteComposable
@Composable
public fun RemoteStateLayout(
state: RemoteInt,
vararg states: Int,
modifier: RemoteModifier = RemoteModifier,
content: @Composable (Int) -> Unit,
)
A layout that displays content based on the current value of a RemoteInt state.
Parameters
| state | The RemoteInt state that determines which content to display. |
| states | The set of possible integer states. |
| modifier | The RemoteModifier to be applied to the layout. |
| content | The composable content to be displayed for each integer state. |