Class

CLKComplicationServer

An object that manages the active complications for a given app.

Declaration

@interface CLKComplicationServer : NSObject

Overview

Do not create instances of this class directly. Instead, use the shared object to fetch information about your active complications and to invalidate or extend the data for a specific complication. You can also use it to get information about the minimum and maximum dates for which you need to provide data to support Time Travel.

Topics

Getting the Complication Server

+ sharedInstance

Returns the shared complication server.

Getting the Active Complications

activeComplications

The active complications for the current app.

Updating Your Timeline Data

- reloadTimelineForComplication:

Invalidates your existing timeline data and triggers an update session to reload it.

- extendTimelineForComplication:

Asks the system to extend the data in your complication’s timeline.

Getting the Time Travel Boundaries

earliestTimeTravelDate

The earliest Time Travel date for which you should provide data.

latestTimeTravelDate

The latest date supported by Time Travel.

Notifications

CLKComplicationServerActiveComplicationsDidChangeNotification

Posted when the set of active complications changes.

Relationships

Inherits From

See Also

Management

CLKComplication

Metadata about one of your custom complications.

CLKComplicationTimelineEntry

A container for the complication template object to display and the time at which to display it.