Google is committed to advancing racial equity for Black communities. See how.

WatchFace

class WatchFace
kotlin.Any
   ↳ androidx.wear.watchface.WatchFace

A WatchFace is constructed by a user's WatchFaceService and brings together rendering, styling, complications and state observers.

Summary

Nested classes

Builder for a WatchFace.

abstract

Interface for getting the current system time.

Public methods
Unit

Schedules a call to onDraw to draw the next frame.

Unit

Posts a message to schedule a call to onDraw to draw the next frame.

Properties
Calendar

Public methods

invalidate

@UiThread fun invalidate(): Unit

Schedules a call to onDraw to draw the next frame.

postInvalidate

fun postInvalidate(): Unit

Posts a message to schedule a call to onDraw to draw the next frame. Unlike invalidate, this method is thread-safe and may be called on any thread.

Properties

calendar

val calendar: Calendar