> Documentation index: https://developer.android.com/reference/llms.txt

# WearWidgetParams

Artifact: [androidx.glance.wear:wear-core](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/glance/wear/core/WearWidgetParams.kt+class:androidx.glance.wear.core.WearWidgetParams) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)


```
class WearWidgetParams
```

<br />

*** ** * ** ***

The parameters used for providing data for a Wear Widget.

## Summary

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |

| ### Public properties |
|---|---|
| `Int` | `containerType` The container type being requested. |
| `Float` | `cornerRadiusDp` The corner radius in dp of the widget container. |
| `Float` | `heightDp` The height in dp of the content for this widget. |
| `Float` | `horizontalPaddingDp` The horizontal padding in dp inside the widget container, applied to both sides within `widthDp` to define the available content area. |
| `WidgetInstanceId` | `instanceId` The instance id of the widget for this request. |
| `Float` | `verticalPaddingDp` The vertical padding in dp inside the widget container, applied to top and bottom within `heightDp` to define the available content area. |
| `Float` | `widthDp` 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-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
val containerType: Int
```

The container type being requested. See `ContainerInfo`.

### cornerRadiusDp

Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
val cornerRadiusDp: Float
```

The corner radius in dp of the widget container.

### heightDp

Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
val heightDp: Float
```

The height in dp of the content for this widget.

### horizontalPaddingDp

Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
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-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
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-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
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-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)

```
val widthDp: Float
```

The width in dp of the content for this widget.