class WatchFaceId


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

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

The system's id for a watch face being edited.

Public constructors

WatchFaceId

Added in 1.0.0
WatchFaceId(id: String)
Parameters
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.

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
val idString

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.