androidx.wear.watchface

Interfaces

CanvasComplication

Interface for rendering complicationSlots onto a Canvas.

CanvasComplication.InvalidateCallback

Interface for observing when a CanvasComplication needs the screen to be redrawn.

CanvasComplicationFactory

Factory for creating a CanvasComplication.

ComplicationSlotsManager.TapCallback

Interface used to report user taps on the ComplicationSlot.

ComplicationTapFilter

Interface for determining whether a tap hits a complication.

WatchFace.TapListener

Listens for taps on the watchface.

Classes

BackgroundComplicationTapFilter

Default ComplicationTapFilter for ComplicationSlotBoundsType.BACKGROUND complicationSlots.

ComplicationSlot

Represents the slot an individual complication on the screen may go in.

ComplicationSlot.Builder

Builder for constructing ComplicationSlots.

ComplicationSlotsManager

The ComplicationSlots associated with the WatchFace.

ContentDescriptionLabel

Describes regions of the watch face for use by a screen reader.

ListenableCanvasRenderer

ListenableFuture-based compatibility wrapper around Renderer.CanvasRenderer's suspending methods.

ListenableGlesRenderer

ListenableFuture-based compatibility wrapper around Renderer.GlesRenderer's suspending methods.

ListenableWatchFaceService

ListenableFuture-based compatibility wrapper around WatchFaceService's suspending WatchFaceService.createWatchFace.

RenderParameters

Used to parameterize watch face rendering.

RenderParameters.HighlightLayer

The definition of what to include in the highlight layer.

RenderParameters.HighlightedElement

An element of the watch face to highlight.

RenderParameters.HighlightedElement.ComplicationSlot

A single androidx.wear.watchface.ComplicationSlot with the specified id will be highlighted.

RenderParameters.HighlightedElement.UserStyle

A UserStyleSetting to highlight.

Renderer

The base class for CanvasRenderer and GlesRenderer.

Renderer.CanvasRenderer

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

Renderer.GlesRenderer

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

RoundRectComplicationTapFilter

Default ComplicationTapFilter for ComplicationSlotBoundsType.ROUND_RECT complicationSlots.

TapEvent

An input event received by the watch face.

WatchFace

The return value of WatchFaceService.createWatchFace which brings together rendering, styling, complicationSlots and state observers.

WatchFace.LegacyWatchFaceOverlayStyle

Legacy Wear 2.0 watch face styling.

WatchFaceService

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

WatchState

Describes the current state of the wearable including some hardware details such as whether or not it supports burn in prevention and low-bit ambient.

Enums

Exceptions

Renderer.GlesRenderer.GlesException

Exception thrown if a GL call fails