WearWidgetParams

class WearWidgetParams


The parameters used for providing data for a Wear Widget.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

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 functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

containerType

Added in 1.0.0-alpha05
val containerTypeInt

The container type being requested. See androidx.glance.wear.ContainerInfo.

heightDp

Added in 1.0.0-alpha05
val heightDpFloat

The height in dp of the content for this widget.

instanceId

Added in 1.0.0-alpha05
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-alpha05
val widthDpFloat

The width in dp of the content for this widget.