Composable Function

RemoteIconButton

Wear Material RemoteIconButton is a circular, icon-only button with transparent background and no border.

RemoteIconButtonSimpleSample

@Sampled
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
fun RemoteIconButtonSimpleSample(modifier: RemoteModifier = RemoteModifier) {
    RemoteIconButton(
        testAction,
        modifier = modifier,
        colors = RemoteIconButtonDefaults.filledTonalIconButtonColors(),
    ) {
        RemoteIcon(
            imageVector = TestImageVectors.VolumeUp,
            contentDescription = null,
            modifier = RemoteModifier.size(RemoteIconButtonDefaults.DefaultIconSize),
        )
    }
}

private val testAction = hostAction("testAction".rs, 1.rf)

Content updated: