EditorState
class EditorState
The state of the editing session. See androidx.wear.watchface.editor.EditorSession.
use Watch Face Format instead
Summary
Public functions |
|
|---|---|
open operator Boolean |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open Int |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open String |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public properties |
|
|---|---|
Map<Int, ComplicationData> |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Bitmap? |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Boolean |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleData |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
WatchFaceId |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public functions
Public properties
previewComplicationsData
val previewComplicationsData: Map<Int, ComplicationData>
Preview ComplicationData needed for taking screenshots without live complication data.
previewImage
val previewImage: Bitmap?
If non-null this Bitmap contains a preview image of the watch face rendered with the final style and complications and the androidx.wear.watchface.editor.PreviewScreenshotParams specified in the androidx.wear.watchface.editor.EditorRequest. If shouldCommitChanges is false then this will also be null (see implementation of androidx.wear.watchface.editor.EditorSession.close).
shouldCommitChanges
val shouldCommitChanges: Boolean
Whether or not this state should be committed (i.e. the user aborted the session). If it's not committed then any changes (E.g. complication data source changes) should be abandoned. There's no need to resend the style to the watchface because the library will have restored the previous style.
userStyle
val userStyle: UserStyleData
The current UserStyle encoded as a UserStyleData.
watchFaceId
val watchFaceId: WatchFaceId
The system's watch face instance ID. See WatchFaceId for details.