Package org.robovm.apple.eventkit
Class EKEventStore
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.eventkit.EKEventStore
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class EKEventStore extends NSObject
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EKEventStore.EKEventStorePtr
static class
EKEventStore.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description EKEventStore()
protected
EKEventStore(NSObject.Handle h, long handle)
protected
EKEventStore(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
EKEventStore
public EKEventStore()
-
EKEventStore
protected EKEventStore(NSObject.Handle h, long handle)
-
EKEventStore
protected EKEventStore(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getEventStoreIdentifier
public java.lang.String getEventStoreIdentifier()
-
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.
-
getCalendars
public NSArray<EKCalendar> getCalendars(EKEntityType entityType)
- Since:
- Available in iOS 6.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.
-
saveCalendar
public boolean saveCalendar(EKCalendar calendar, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
removeCalendar
public boolean removeCalendar(EKCalendar calendar, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- 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.
-
saveEvent
public boolean saveEvent(EKEvent event, EKSpan span) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 4.0 and later.
-
removeEvent
public boolean removeEvent(EKEvent event, EKSpan span) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 4.0 and later.
-
saveEvent
public boolean saveEvent(EKEvent event, EKSpan span, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
removeEvent
public boolean removeEvent(EKEvent event, EKSpan span, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
getEvent
public EKEvent getEvent(java.lang.String identifier)
-
getEvents
public NSArray<EKEvent> getEvents(NSPredicate predicate)
-
enumerateEvents
public void enumerateEvents(NSPredicate predicate, org.robovm.objc.block.VoidBlock2<EKEvent,org.robovm.rt.bro.ptr.BooleanPtr> block)
-
getPredicateForEvents
public NSPredicate getPredicateForEvents(NSDate startDate, NSDate endDate, NSArray<EKCalendar> calendars)
-
saveReminder
public boolean saveReminder(EKReminder reminder, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
removeReminder
public boolean removeReminder(EKReminder reminder, boolean commit) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 6.0 and later.
-
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.
-
commit
public boolean commit() throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.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.
-
-