WearWidgetParams

class WearWidgetParams


The parameters used for providing data for a Wear Widget.

Summary

Public properties

Int

The container type being requested.

Float

The height in dp of the content for this widget.

WidgetInstanceId

The instance id of the widget for this request.

Float

The width in dp of the content for this widget.

Public properties

containerType

Added in 1.0.0-alpha01
val containerTypeInt

The container type being requested. See ContainerInfo.

heightDp

Added in 1.0.0-alpha01
val heightDpFloat

The height in dp of the content for this widget.

instanceId

Added in 1.0.0-alpha01
val instanceIdWidgetInstanceId

The instance id of the widget for this request. The id is created by the system and is provided when GlanceWearWidget.onActivated is called.

widthDp

Added in 1.0.0-alpha01
val widthDpFloat

The width in dp of the content for this widget.