androidx.wear.watchface.complications.datasource


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

Interfaces

ComplicationDataSourceService.ComplicationRequestListener

Callback for onComplicationRequest where only one of onComplicationData or onComplicationDataTimeline should be called.

ComplicationDataSourceUpdateRequester

Allows complication complication data source to request update calls from the system.

Classes

ComplicationDataSourceService

Class for sources of complication data.

ComplicationDataTimeline

A collection of TimelineEntry items.

ComplicationRequest

Data associated with complication request in ComplicationDataSourceService.onComplicationRequest.

SuspendingComplicationDataSourceService

Kotlin coroutine wrapper for ComplicationDataSourceService producing ComplicationData.

SuspendingTimelineComplicationDataSourceService

Kotlin coroutine wrapper for ComplicationDataSourceService producing ComplicationDataTimeline.

TimeInterval

A time interval, typically used to describe the validity period of a TimelineEntry.

TimelineEntry

One piece of renderable content along with the time that it is valid for.

TargetWatchFaceSafety

Defines constants that describe whether or not the watch face the complication is being requested for is deemed to be safe.