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

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

        @NotNull
        public static @NotNull 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 EKAlarm allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static EKAlarm 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

        @Nullable
        public @Nullable 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

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable 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​(@Nullable
                                    @Nullable 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​(@Nullable
                                          @Nullable 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

        @Nullable
        public @Nullable 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.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.