Composable Function

RemoteRadioButton

The Wear Material RemoteRadioButton offers four slots and a specific layout for an icon, a label, a secondaryLabel and a radio selection control.

RemoteRadioButtonSample

@Sampled
@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteRadioButtonSample(modifier: RemoteModifier = RemoteModifier) {
    val selected = rememberMutableRemoteBoolean(true)

    RemoteRadioButton(
        selected = selected,
        onSelect = valueChange(selected, true.rb),
        modifier = modifier,
        label = { RemoteText("Radio Button".rs) },
    )
}

Content updated: