EditorDelegate
interface EditorDelegate
androidx.wear.watchface.WatchFace.EditorDelegate |
Delegate used by on watch face editors.
Summary
Public methods | |
---|---|
abstract Unit |
Signals that the activity is going away and resources should be released. |
abstract Bitmap |
takeScreenshot(renderParameters: RenderParameters, calendarTimeMillis: Long, idToComplicationData: Map<Int, ComplicationData>?) Takes a screenshot with the UserStyleRepository's UserStyle. |
Properties | |
---|---|
abstract ComplicationsManager |
The WatchFace's ComplicationsManager. |
abstract Long |
The UTC reference time to use for previews in milliseconds since the epoch. |
abstract Rect | |
abstract UserStyleRepository |
The WatchFace's UserStyleRepository. |
Public methods
onDestroy
abstract fun onDestroy(): Unit
Signals that the activity is going away and resources should be released.
takeScreenshot
abstract fun takeScreenshot(
renderParameters: RenderParameters,
calendarTimeMillis: Long,
idToComplicationData: Map<Int, ComplicationData>?
): Bitmap
Takes a screenshot with the UserStyleRepository's UserStyle.
Properties
complicationsManager
abstract val complicationsManager: ComplicationsManager
The WatchFace's ComplicationsManager.
previewReferenceTimeMillis
abstract val previewReferenceTimeMillis: Long
The UTC reference time to use for previews in milliseconds since the epoch.
userStyleRepository
abstract val userStyleRepository: UserStyleRepository
The WatchFace's UserStyleRepository.