# WatchFaceId

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/EditorState.kt+class:androidx.wear.watchface.client.WatchFaceId) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)

*** ** * ** ***


```
public final class WatchFaceId
```

<br />

*** ** * ** ***

The system is responsible for the management and generation of these ids. Some systems support multiple instances of a watchface and hence there can be multiple ids, but only if androidx.wear.watchface.MULTIPLE_INSTANCES_ALLOWED meta-data is in the watch face's manifest.

Some systems don't support multiple instances at all, for those there'll only be one id, however watch faces and editors should not need to do anything special because of this.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId#WatchFaceId(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId#getId()()` The system's id for a watch face being edited. |
| `int` | `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId#toString()()` |

## Public constructors

### WatchFaceId

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

```
public WatchFaceId(@NonNull String id)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id` | The system's id for a watch face being edited. This is passed in from androidx.wear.watchface.EditorRequest.watchFaceId and matches the value passed to `https://developer.android.com/reference/androidx/wear/watchface/WatchState#watchFaceInstanceId()`. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getId

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

```
public final @NonNull String getId()
```

The system's id for a watch face being edited. This is passed in from androidx.wear.watchface.EditorRequest.watchFaceId and matches the value passed to `https://developer.android.com/reference/androidx/wear/watchface/WatchState#watchFaceInstanceId()`.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```