Conforms to NSObject
Declared in TKCalendar.h

Overview

The TKCalendarDataSource protocol is adopted by an object that mediates the application’s data model for a TKCalendar object. The data source provides the calendar object with events.

Instance Methods

calendar:eventsForDate:

Returns an array with events for specific date.

- (NSArray *__nullable)calendar:(TKCalendar *__nonnull)calendar eventsForDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar instance requesting this information.Otkca

date

The date for which to retrieve events.

Return Value

An array containing instances of objects adopting the TKCalendarEventProtocol protocol.

Declared In

TKCalendar.h

calendar:eventsFromDate:toDate:withCallback:

Asks the data source for an array of objects adopting the TKCalendarEventProtocol protocol with a callback.

- (void)calendar:(TKCalendar *__nonnull)calendar eventsFromDate:(NSDate *__nonnull)startDate toDate:(NSDate *__nonnull)endDate withCallback:(void ( ^ __nullable ) ( NSArray *__nullable events ))eventsCallback

Parameters

calendar

The calendar instance requesting this information.

startDate

The start date for which to retrieve events.

endDate

The end date for wihich to retrieve events.

eventsCallback

The callback block that should be called after retrieving all events for the specified period.

Declared In

TKCalendar.h