RemoteBox
Source set: JvmAndAndroid
@Composable
public fun RemoteBox(
modifier: RemoteModifier = RemoteModifier,
contentAlignment: RemoteAlignment = RemoteAlignment.TopStart,
content: @RemoteComposable @Composable RemoteBoxScope.() -> Unit,
)
A layout composable that positions its children relative to its own edges.
RemoteBox allows you to wrap multiple children and position them using contentAlignment. In Remote Compose, this layout is recorded as a Box command.
Example of centering overlapping children inside a RemoteBox:
Parameters
| modifier | modifier to be applied to this box |
| contentAlignment | default alignment inside the box |
| content | content of the box, which has access to RemoteBoxScope |
RemoteBox
Source set: JvmAndAndroid
@Composable
public fun RemoteBox(modifier: RemoteModifier = RemoteModifier)
A version of RemoteBox with no content, often used as a spacer or a background placeholder.
Parameters
| modifier | modifier to be applied to this box |