This is a migrated thread and some comments may be shown as answers.

different data sources

1 Answer 38 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
massimiliano
Top achievements
Rank 1
massimiliano asked on 23 Oct 2015, 04:01 PM

Hello,

 

I'm evaluating the software for a iOS/Android project.

What I need is basically merging events from local device with other events, coming from a remote server (I know I cannot use ics shared calendar).

As far as I understood I can either use the device datasource with EventKit, importing events from local calendars, or use a TKCalendar datasource.

So, my questions:

1. Can I only imports events from local device if I use TKCalendarEventKitDataSourceDelegate? And in this case, can I merge events coming from remote?

2. If I use a standard TKCalendar datasource (no EventKit), should I import events from local device manually?

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 26 Oct 2015, 04:34 PM
Hello Massimiliano,

Thank you for contacting us.

Directly to your questions:

1. Yes, you can choose which events to load when using TKCalendarEventKitDataSource. This is done by adopting TKCalendarEventKitDataSourceDelegate and overriding its shouldImportEventsFromCalendar: method:
- (BOOL)shouldImportEventsFromCalendar:(EKCalendar* __nonnull)calendar
{
    return YES;
}

However, you should do the merging manually with code.

2. Yes, in this case you should do the merge manually. One option is to use TKCalendarEventKitDataSource and call its methods in your custom data source.

I hope this helps. Do not hesitate to contact us if you need further assistance.

Regards,
Jack
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
massimiliano
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or