Instance Method

getTimelineEndDateForComplication:withHandler:

Retrieves the latest date for which your complication is prepared to supply data.

Declaration

- (void)getTimelineEndDateForComplication:(CLKComplication *)complication withHandler:(void (^)(NSDate *date))handler;

Parameters

complication

The complication tied to the request.

handler

The handler to execute with the end date. This block has no return value and takes the following parameter:

date

The end date for your data. For times after this date, WatchKit dims your data to indicate that the timeline does not continue. If you specify nil, ClockKit does not ask for any more future data.

Discussion

Your implementation of this method must execute the block in the handler parameter and specify the date. If your application cannot provide future timeline entries, specify the current date.

If you do not implement this method, ClockKit does not attempt to retrieve timeline entries after the current entry.

See Also

Getting the Timeline Information

- getSupportedTimeTravelDirectionsForComplication:withHandler:

Determines whether your complication can provide timeline entries for the future or the past.

Required.

- getTimelineStartDateForComplication:withHandler:

Retrieves the earliest date for which your complication is prepared to supply data.