# WatchFaceId

# 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)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId "View this page in Java")


```
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                                                                                                     |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [WatchFaceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/WatchFaceId#WatchFaceId(kotlin.String))`(id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/WatchFaceId#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/WatchFaceId#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/WatchFaceId#toString())`()`                                                                                            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/WatchFaceId#id()) The system's id for a watch face being edited. |

## Public constructors

### WatchFaceId

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

```
WatchFaceId(id: String)
```  

|                                       Parameters                                        |
|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | 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 [androidx.wear.watchface.WatchState.watchFaceInstanceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState#watchFaceInstanceId()). |

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### id

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

```
val id: String
```

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 [androidx.wear.watchface.WatchState.watchFaceInstanceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState#watchFaceInstanceId()).