public final 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 methods

boolean
equals(Object other)
final @NonNull String

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

int
@NonNull String

Public constructors

WatchFaceId

Added in 1.0.0
public WatchFaceId(@NonNull String id)
Parameters
@NonNull String 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 androidx.wear.watchface.WatchState.watchFaceInstanceId.

Public methods

equals

public boolean equals(Object other)

getId

Added in 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 androidx.wear.watchface.WatchState.watchFaceInstanceId.

hashCode

public int hashCode()

toString

public @NonNull String toString()