/** * @since Available in iOS 4.0 and later. */ public static NSObject observeChanged(EKEventStore object, final VoidBlock1<EKEventStore> block) { return NSNotificationCenter.getDefaultCenter().addObserver(ChangedNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification a) { block.invoke((EKEventStore) a.getObject()); } }); } }
/** * @since Available in iOS 5.0 and later. */ public boolean commit() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = commit(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean removeCalendar(EKCalendar calendar, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeCalendar(calendar, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean removeEvent(EKEvent event, EKSpan span, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeEvent(event, span, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean saveEvent(EKEvent event, EKSpan span) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveEvent(event, span, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean saveReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean removeReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean saveCalendar(EKCalendar calendar, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveCalendar(calendar, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean removeEvent(EKEvent event, EKSpan span) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeEvent(event, span, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean saveEvent(EKEvent event, EKSpan span, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveEvent(event, span, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean saveReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean removeReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean saveCalendar(EKCalendar calendar, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveCalendar(calendar, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean removeEvent(EKEvent event, EKSpan span) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeEvent(event, span, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean saveEvent(EKEvent event, EKSpan span, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveEvent(event, span, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static NSObject observeChanged(EKEventStore object, final VoidBlock1<EKEventStore> block) { return NSNotificationCenter.getDefaultCenter().addObserver(ChangedNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification a) { block.invoke((EKEventStore) a.getObject()); } }); } }
/** * @since Available in iOS 6.0 and later. */ public boolean saveReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = saveReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean removeReminder(EKReminder reminder, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeReminder(reminder, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean removeCalendar(EKCalendar calendar, boolean commit) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeCalendar(calendar, commit, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean commit() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = commit(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**