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

androidx.wear.watchface

Interfaces

CanvasComplication

Common interface for rendering complications onto a Canvas.

TapListener

Observer

A simple callback that can receive from ObservableWatchData.

SystemTimeProvider

Interface for getting the current system time.

WatchFaceHostApi

The API WatchFace uses to communicate with the system.

Classes

CanvasComplicationDrawable

A complication rendered with ComplicationDrawable which renders complications in a material design style.

CanvasRenderer

Watch faces that require Canvas rendering should extend their Renderer from this class.

Complication

Represents a individual complication on the screen.

ComplicationOutlineRenderer

Helper for rendering a dashed outline around a complication.

ComplicationsManager

The Complications associated with the WatchFace.

GlesRenderer

Watch faces that require GLES20 rendering should extend their Renderer from this class.

GlesTextureComplication

Helper for rendering a complication to a GLES20 texture.

MutableObservableWatchData

ObservableWatchData which publicly exposes setValueT method

MutableWatchState

ObservableWatchData

An observable UI thread only data holder class.

Renderer

The base class for CanvasRenderer and GlesRenderer.

RenderParameters

Used to parameterize watch face rendering.

WatchFace

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

WatchFaceHost

An opaque holder for the internal API WatchFace for it's host service.

WatchFaceService

WatchFaceService and WatchFace are a pair of base classes intended to handle much of the boilerplate needed to implement a watch face without being too opinionated.

WatchState

Annotations

CanvasType

ScreenShape

TapType

WatchFaceType

The type of watch face, whether it's digital or analog.

Enums

DrawMode

LayerMode

Used to parameterize per layer drawing.