TKCalendarEventKitDataSource Class Reference
Inherits from | NSObject |
Conforms to | TKCalendarDataSource |
Declared in | TKCalendarEventKitDataSource.h |
Overview
A data source that can be used with TKCalendar component to read dates stored on the device by using the EventKit API. Import EventKit and EventKitUI frameworks when using this class.
Tasks
-
delegate
property -
calendars
property -
– getCalendarsWithBlock:
-
– createCalendarEvent:inCalendar:
Properties
Instance Methods
createCalendarEvent:inCalendar:
Creates a new object adopting the TKCalendarEventProtocol protocol.
- (id<TKCalendarEventProtocol> __nullable)createCalendarEvent:(EKEvent *__nullable)event inCalendar:(EKCalendar *__nullable)calendar
Parameters
- event
The corresponding EKEvent class.
- calendar
The corresponding EKCalendar class.
Return Value
An instance of an object implementing the TKCalendarEventProtocol protocol.
Declared In
TKCalendarEventKitDataSource.h
getCalendarsWithBlock:
Gets a list with calendars available when using EventKit asyncronously.
- (void)getCalendarsWithBlock:(void ( ^ __nullable ) ( NSArray *__nullable ))callbackBlock
Parameters
- callbackBlock
A callback that will be executed after calendars are fetched.
Declared In
TKCalendarEventKitDataSource.h