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)
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: