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

# WearWidgetVisibleEvent

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


```
class WearWidgetVisibleEvent : WearWidgetEvent
```

<br />

*** ** * ** ***

An event where the widget became visible on screen.

## Summary

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

| ### Public properties |
|---|---|
| `Duration` | `duration` The duration for which the widget instance was visible. |
| `WidgetInstanceId` | `instanceId` The instance id of the widget that was visible. |
| `Instant` | `startTime` The instant when the widget instance became visible. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### duration

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

```
val duration: Duration
```

The duration for which the widget instance was visible. After this duration, the widget was no longer visible.

### 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 that was visible.

### startTime

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

```
val startTime: Instant
```

The instant when the widget instance became visible.