Package apple.eventkit
Class EKEvent
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.eventkit.EKObject
-
- apple.eventkit.EKCalendarItem
-
- apple.eventkit.EKEvent
-
- All Implemented Interfaces:
NSObject
public class EKEvent extends EKCalendarItem
EKEvent The EKEvent class represents an occurrence of an event.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEKEvent(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static EKEventalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)longavailability()[@property] availability The availability setting for this event.java.lang.StringbirthdayContactIdentifier()birthdayContactIdentifier Specifies the contact identifier of the person this event was created for.longbirthdayPersonID()Deprecated.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()longcompareStartDateWithEvent(EKEvent other)compareStartDateWithEvent Comparison function you can pass to sort NSArrays of EKEvents by start date.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()NSDateendDate()[@property] endDate The end date for the event.java.lang.StringeventIdentifier()[@property] eventIdentifier A unique identifier for this event.static EKEventeventWithEventStore(EKEventStore eventStore)eventWithEventStore: Creates a new autoreleased event object.static longhash_static()EKEventinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAllDay()[@property] allDay Indicates this event is an 'all day' event.booleanisDetached()[@property] isDetached Represents whether this event is detached from a recurring series.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()NSDateoccurrenceDate()[@property] occurrenceDate: The occurrence date of an event if it is part of a recurring series.EKParticipantorganizer()[@property] organizer The organizer of this event, or nil.booleanrefresh()refresh Refreshes an event object to ensure it's still valid.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAllDay(boolean value)[@property] allDay Indicates this event is an 'all day' event.voidsetAvailability(long value)[@property] availability The availability setting for this event.voidsetEndDate(NSDate value)[@property] endDate The end date for the event.voidsetStartDate(NSDate value)[@property] startDate The start date for the event.voidsetStructuredLocation(EKStructuredLocation value)[@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an event.static voidsetVersion_static(long aVersion)NSDatestartDate()[@property] startDate The start date for the event.longstatus()[@property] status The status of the event.EKStructuredLocationstructuredLocation()[@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an event.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.eventkit.EKCalendarItem
addAlarm, addRecurrenceRule, alarms, attendees, calendar, calendarItemExternalIdentifier, calendarItemIdentifier, creationDate, hasAlarms, hasAttendees, hasNotes, hasRecurrenceRules, lastModifiedDate, location, notes, recurrenceRules, removeAlarm, removeRecurrenceRule, setAlarms, setCalendar, setLocation, setNotes, setRecurrenceRules, setTimeZone, setTitle, setURL, timeZone, title, URL, UUID
-
Methods inherited from class apple.eventkit.EKObject
hasChanges, isNew, reset, rollback
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static EKEvent alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
eventWithEventStore
public static EKEvent eventWithEventStore(EKEventStore eventStore)
eventWithEventStore: Creates a new autoreleased event object.
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
availability
public long availability()
[@property] availability The availability setting for this event. The availability setting is used by CalDAV and Exchange servers to indicate how the time should be treated for scheduling. If the calendar the event is currently in does not support event availability, EKEventAvailabilityNotSupported is returned.
-
birthdayContactIdentifier
public java.lang.String birthdayContactIdentifier()
birthdayContactIdentifier Specifies the contact identifier of the person this event was created for. This property is only valid for events in the built-in Birthdays calendar. It specifies the contact identifier (for use with the Contacts framework) of the person this event was created for. For any other type of event, this property returns nil.
-
birthdayPersonID
@Deprecated public long birthdayPersonID()
Deprecated.[@property] birthdayPersonID Specifies the address book ID of the person this event was created for. This property is only valid for events in the built-in Birthdays calendar. It specifies the Address Book ID of the person this event was created for. For any other type of event, this property returns -1.
-
compareStartDateWithEvent
public long compareStartDateWithEvent(EKEvent other)
compareStartDateWithEvent Comparison function you can pass to sort NSArrays of EKEvents by start date.
-
endDate
public NSDate endDate()
[@property] endDate The end date for the event. This will be nil for new events until you set it.
-
eventIdentifier
public java.lang.String eventIdentifier()
[@property] eventIdentifier A unique identifier for this event. This identifier can be used to look the event up using [EKEventStore eventWithIdentifier:]. You can use this not only to simply fetch the event, but also to validate the event has not been deleted out from under you when you get an external change notification via the EKEventStore database changed notification. If eventWithIdentifier: returns nil, the event was deleted. Please note that if you change the calendar of an event, this ID will likely change. It is currently also possible for the ID to change due to a sync operation. For example, if a user moved an event on a different client to another calendar, we'd see it as a completely new event here. This may be nil for events that have not been saved.
-
init
public EKEvent init()
- Overrides:
initin classEKCalendarItem
-
isAllDay
public boolean isAllDay()
[@property] allDay Indicates this event is an 'all day' event.
-
setAllDay
public void setAllDay(boolean value)
[@property] allDay Indicates this event is an 'all day' event.
-
isDetached
public boolean isDetached()
[@property] isDetached Represents whether this event is detached from a recurring series. If this EKEvent is an instance of a repeating event, and an attribute of this EKEvent has been changed from the default value generated by the repeating event, isDetached will return YES. If the EKEvent is unchanged from its default state, or is not a repeating event, isDetached returns NO.
-
occurrenceDate
public NSDate occurrenceDate()
[@property] occurrenceDate: The occurrence date of an event if it is part of a recurring series. This is only set if the event is part of a recurring series. It returns the date on which this event was originally scheduled to occur. For occurrences that are unmodified from the recurring series, this is the same as the start date. This value will remain the same even if the event has been detached and its start date has changed. Floating events (such as all-day events) are currently returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set startDate.
-
organizer
public EKParticipant organizer()
[@property] organizer The organizer of this event, or nil.
-
refresh
public boolean refresh()
refresh Refreshes an event object to ensure it's still valid. When the database changes, your application is sent an EKEventStoreChangedNotification note. You should generally consider all EKEvent instances to be invalid as soon as you receive the notification. However, for events you truly care to keep around, you can call this method. It ensures the record is still valid by ensuring the event and start date are still valid. It also attempts to refresh all properties except those you might have modified. If this method returns NO, the record has been deleted or is otherwise invalid. You should not continue to use it. If it returns YES, all is still well, and the record is ready for continued use. You should only call this method on events that are more critical to keep around if possible, such as an event that is being actively edited, as this call is fairly heavyweight. Do not use it to refresh the entire selected range of events you might have had selected. It is mostly pointless anyway, as recurrence information may have changed.
-
setAvailability
public void setAvailability(long value)
[@property] availability The availability setting for this event. The availability setting is used by CalDAV and Exchange servers to indicate how the time should be treated for scheduling. If the calendar the event is currently in does not support event availability, EKEventAvailabilityNotSupported is returned.
-
setEndDate
public void setEndDate(NSDate value)
[@property] endDate The end date for the event. This will be nil for new events until you set it.
-
setStartDate
public void setStartDate(NSDate value)
[@property] startDate The start date for the event. This property represents the start date for this event. Floating events (such as all-day events) are currently always returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set it.
-
setStructuredLocation
public void setStructuredLocation(EKStructuredLocation value)
[@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an event. The getter for EKEvent’s location property just returns the structured location’s title. The setter for EKEvent’s location property is equivalent to [event setStructuredLocation:[EKStructuredLocation locationWithTitle:…]].
-
startDate
public NSDate startDate()
[@property] startDate The start date for the event. This property represents the start date for this event. Floating events (such as all-day events) are currently always returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set it.
-
status
public long status()
[@property] status The status of the event. While the status offers four different values in the EKEventStatus enumeration, in practice, the only actionable and reliable status is canceled. Any other status should be considered informational at best. You cannot set this property. If you wish to cancel an event, you should simply remove it using removeEvent:.
-
structuredLocation
public EKStructuredLocation structuredLocation()
[@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an event. The getter for EKEvent’s location property just returns the structured location’s title. The setter for EKEvent’s location property is equivalent to [event setStructuredLocation:[EKStructuredLocation locationWithTitle:…]].
-
-