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

# ActiveWearWidgetHandle

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/ActiveWearWidgetHandle.kt+class:androidx.glance.wear.core.ActiveWearWidgetHandle) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/glance-wear.md.txt#1.0.0-alpha23)


```
class ActiveWearWidgetHandle
```

<br />

*** ** * ** ***

Identifies a unique instance of a widget that is active in the host.

A widget is active when it was added by the user to a widget surface.

## Summary

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

| ### Public properties |
|---|---|
| `Int` | `containerType` The container type of the widget instance. |
| `WidgetInstanceId` | `instanceId` The id of the widget instance. |
| `ComponentName` | `provider` The `ComponentName` of the GlanceWearWidgetService associated with the widget instance. |

## Public functions

### equals

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

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## 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 of the widget instance.

### 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 id of the widget instance.

### provider

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

```
val provider: ComponentName
```

The `ComponentName` of the GlanceWearWidgetService associated with the widget instance.