Class EKAlarm

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class EKAlarm
    extends EKObject
    implements NSCopying
    EKAlarm The EKAlarm class provides an interface for accessing and manipulating calendar event alarms. The EKAlarm class represents alarms on an event. An alarm can be relative (e.g. 15 mins before) or absolute (specific time).
    • Constructor Detail

      • EKAlarm

        protected EKAlarm​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alarmWithAbsoluteDate

        public static EKAlarm alarmWithAbsoluteDate​(NSDate date)
        alarmWithAbsoluteDate: Creates a new autoreleased alarm with an absolute trigger time.
        Parameters:
        date - The date the alarm should fire.
      • alarmWithRelativeOffset

        public static EKAlarm alarmWithRelativeOffset​(double offset)
        alarmWithRelativeOffset: Creates a new autoreleased alarm with a relative trigger time. Creates a new autoreleased alarm with a relative trigger time. This offset is added to the start date of the event.
        Parameters:
        offset - The offset from the event start that the alarm should fire.
      • alloc

        public static EKAlarm 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()
      • hash_static

        public static long hash_static()
      • 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()
      • absoluteDate

        public NSDate absoluteDate()
        [@property] absoluteDate Represents an alarm that fires at a specific date. Set this property to a date to establish an absolute alarm trigger. Setting this clears any relative interval trigger.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • proximity

        public long proximity()
        [@property] proximity Defines whether this alarm triggers via entering/exiting a geofence as defined by structuredLocation.
      • relativeOffset

        public double relativeOffset()
        [@property] relativeOffset Specifies a relative offset from an event start date to fire an alarm. Set this property to an appropriate negative value to establish an alarm trigger relative to the start date/time of an event. Setting this clears any existing date trigger.
      • setAbsoluteDate

        public void setAbsoluteDate​(NSDate value)
        [@property] absoluteDate Represents an alarm that fires at a specific date. Set this property to a date to establish an absolute alarm trigger. Setting this clears any relative interval trigger.
      • setProximity

        public void setProximity​(long value)
        [@property] proximity Defines whether this alarm triggers via entering/exiting a geofence as defined by structuredLocation.
      • setRelativeOffset

        public void setRelativeOffset​(double value)
        [@property] relativeOffset Specifies a relative offset from an event start date to fire an alarm. Set this property to an appropriate negative value to establish an alarm trigger relative to the start date/time of an event. Setting this clears any existing date trigger.
      • setStructuredLocation

        public void setStructuredLocation​(EKStructuredLocation value)
        [@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an alarm. This is used in conjunction with proximity to do geofence-based triggering of reminders.
      • structuredLocation

        public EKStructuredLocation structuredLocation()
        [@property] structuredLocation Allows you to set a structured location (a location with a potential geo-coordinate) on an alarm. This is used in conjunction with proximity to do geofence-based triggering of reminders.