WearWidgetDocument

class WearWidgetDocument : WearWidgetData


Defines the content of a widget using Remote Compose.

The provided composable content will be captured into a Remote Compose document for display within a widget.

Summary

Public constructors

WearWidgetDocument(
    backgroundColor: Color,
    content: @RemoteComposable @Composable () -> Unit
)

Public constructors

WearWidgetDocument

Added in 1.0.0-alpha01
WearWidgetDocument(
    backgroundColor: Color,
    content: @RemoteComposable @Composable () -> Unit
)
Parameters
backgroundColor: Color

The Color for the widget's background. The system draws this color behind the content, applying clipping and system-defined padding.

content: @RemoteComposable @Composable () -> Unit

The RemoteComposable content of the widget. This content is rendered in a padded area on top of the background.