different data sources

2 posts, 0 answers
  1. massimiliano
    massimiliano avatar
    3 posts
    Member since:
    Oct 2015

    Posted 23 Oct 2015 Link to this post



    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?



  2. Jack
    Jack avatar
    2335 posts

    Posted 26 Oct 2015 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top