GTLServiceCalendar change listener

88 Views Asked by At

I'm using GTLServiceCalendar for fetching the event from a specific calendar.

I mention code below

- (void)fetchEventsFromCalendarId:(NSString *)calendarId {

    GTLQueryCalendar *query = [GTLQueryCalendar queryForEventsListWithCalendarId:calendarId];
    query.maxResults = 10;
    query.timeMin = [GTLDateTime dateTimeWithDate:[NSDate date]
                                         timeZone:[NSTimeZone localTimeZone]];;
    query.singleEvents = YES;
    query.orderBy = kGTLCalendarOrderByStartTime;

    [self.serviceCalendar executeQuery:query
                      delegate:self
             didFinishSelector:@selector(displayResultWithTicket:finishedWithObject:error:)];
}

I need to refresh the list asap when new events are added into Google Calendar with calendarId, without including a server side.


My question: is there any delegate method that will be called when new events are added to my calendarId ?

0

There are 0 best solutions below