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
equals(other: Any?)

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<IntComplicationData>

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

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

previewComplicationsData

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val previewComplicationsDataMap<IntComplicationData>

Preview ComplicationData needed for taking screenshots without live complication data.

previewImage

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val previewImageBitmap?

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

Added in 1.2.0
Deprecated in 1.3.0-alpha06
val shouldCommitChangesBoolean

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

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val userStyleUserStyleData

The current UserStyle encoded as a UserStyleData.

watchFaceId

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val watchFaceIdWatchFaceId

The system's watch face instance ID. See WatchFaceId for details.