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.

Properties

calendars

Returns a list with calendars available when using EventKit.

@property (nonatomic, strong, readonly) NSArray *calendars

Return Value

An array with instances of EKCalendar class.

Declared In

TKCalendarEventKitDataSource.h

delegate

A delegate for customizing the import process when reading events from EventKit.

@property (nonatomic, weak, nullable) id<TKCalendarEventKitDataSourceDelegate> delegate

Declared In

TKCalendarEventKitDataSource.h

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