Class EKEventStore

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class EKEventStore
    extends NSObject
    Since:
    Available in iOS 4.0 and later.
    • Constructor Detail

      • EKEventStore

        public EKEventStore()
      • EKEventStore

        protected EKEventStore​(NSObject.Handle h,
                               long handle)
    • Method Detail

      • getEventStoreIdentifier

        public java.lang.String getEventStoreIdentifier()
      • getSources

        public NSArray<EKSource> getSources()
        Since:
        Available in iOS 5.0 and later.
      • getDefaultCalendarForNewEvents

        public EKCalendar getDefaultCalendarForNewEvents()
      • ChangedNotification

        public static NSString ChangedNotification()
        Since:
        Available in iOS 4.0 and later.
      • requestAccess

        public void requestAccess​(EKEntityType entityType,
                                  org.robovm.objc.block.VoidBlock2<java.lang.Boolean,​NSError> completion)
        Since:
        Available in iOS 6.0 and later.
      • getSource

        public EKSource getSource​(java.lang.String identifier)
        Since:
        Available in iOS 5.0 and later.
      • getDefaultCalendarForNewReminders

        public EKCalendar getDefaultCalendarForNewReminders()
        Since:
        Available in iOS 6.0 and later.
      • getCalendar

        public EKCalendar getCalendar​(java.lang.String identifier)
        Since:
        Available in iOS 5.0 and later.
      • getCalendarItem

        public EKCalendarItem getCalendarItem​(java.lang.String identifier)
        Since:
        Available in iOS 6.0 and later.
      • getCalendarItems

        public NSArray<EKCalendarItem> getCalendarItems​(java.lang.String externalIdentifier)
        Since:
        Available in iOS 6.0 and later.
      • getEvent

        public EKEvent getEvent​(java.lang.String identifier)
      • enumerateEvents

        public void enumerateEvents​(NSPredicate predicate,
                                    org.robovm.objc.block.VoidBlock2<EKEvent,​org.robovm.rt.bro.ptr.BooleanPtr> block)
      • fetchReminders

        public NSObject fetchReminders​(NSPredicate predicate,
                                       org.robovm.objc.block.VoidBlock1<NSArray<EKReminder>> completion)
        Since:
        Available in iOS 6.0 and later.
      • cancelFetchRequest

        public void cancelFetchRequest​(NSObject fetchIdentifier)
        Since:
        Available in iOS 6.0 and later.
      • getPredicateForReminders

        public NSPredicate getPredicateForReminders​(NSArray<EKCalendar> calendars)
        Since:
        Available in iOS 6.0 and later.
      • getPredicateForIncompleteReminders

        public NSPredicate getPredicateForIncompleteReminders​(NSDate startDate,
                                                              NSDate endDate,
                                                              NSArray<EKCalendar> calendars)
        Since:
        Available in iOS 6.0 and later.
      • getPredicateForCompletedReminders

        public NSPredicate getPredicateForCompletedReminders​(NSDate startDate,
                                                             NSDate endDate,
                                                             NSArray<EKCalendar> calendars)
        Since:
        Available in iOS 6.0 and later.
      • reset

        public void reset()
        Since:
        Available in iOS 5.0 and later.
      • refreshSourcesIfNecessary

        public void refreshSourcesIfNecessary()
        Since:
        Available in iOS 5.0 and later.
      • getAuthorizationStatusForEntityType

        public static EKAuthorizationStatus getAuthorizationStatusForEntityType​(EKEntityType entityType)
        Since:
        Available in iOS 6.0 and later.