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 corner radius in dp of the widget container.

Float

The height in dp of the content for this widget.

Float

The horizontal padding in dp inside the widget container, applied to both sides within widthDp to define the available content area.

WidgetInstanceId

The instance id of the widget for this request.

Float

The vertical padding in dp inside the widget container, applied to top and bottom within heightDp to define the available content area.

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-alpha22
val containerType: Int

The container type being requested. See ContainerInfo.

cornerRadiusDp

Added in 1.0.0-alpha22
val cornerRadiusDp: Float

The corner radius in dp of the widget container.

heightDp

Added in 1.0.0-alpha22
val heightDp: Float

The height in dp of the content for this widget.

horizontalPaddingDp

Added in 1.0.0-alpha22
val horizontalPaddingDp: Float

The horizontal padding in dp inside the widget container, applied to both sides within widthDp to define the available content area.

instanceId

Added in 1.0.0-alpha22
val instanceId: WidgetInstanceId

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

verticalPaddingDp

Added in 1.0.0-alpha22
val verticalPaddingDp: Float

The vertical padding in dp inside the widget container, applied to top and bottom within heightDp to define the available content area.

widthDp

Added in 1.0.0-alpha22
val widthDp: Float

The width in dp of the content for this widget.