WatchFaceId
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 |
|---|
WatchFaceId(@NonNull String id) |
Public methods |
|
|---|---|
boolean |
|
final @NonNull String |
getId()The system's id for a watch face being edited. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
WatchFaceId
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 |
Public methods
getId
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.