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 doesn’t continue. If you specify nil, ClockKit doesn’t 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 can’t provide future timeline entries, specify the current date.

If you don’t implement this method, ClockKit doesn’t 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.