Package apple.uikit

Class UILocalNotification

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSObject

    @Deprecated
    public class UILocalNotification
    extends NSObject
    implements NSCopying, NSCoding
    Deprecated.
    In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to schedule and present UILocalNotifications API-Since: 4.0 Deprecated-Since: 10.0 Deprecated-Message: Use UserNotifications Framework's UNNotificationRequest
    • Constructor Detail

      • UILocalNotification

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

        public static UILocalNotification allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

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

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • 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)
        Deprecated.
      • classFallbacksForKeyedArchiver

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
        Deprecated.
      • description_static

        public static java.lang.String description_static()
        Deprecated.
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

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

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • alertAction

        @Nullable
        public @Nullable java.lang.String alertAction()
        Deprecated.
        used in UIAlert button or 'slide to unlock...' slider in place of unlock
      • alertBody

        @Nullable
        public @Nullable java.lang.String alertBody()
        Deprecated.
        defaults to nil. pass a string or localized string key to show an alert
      • alertLaunchImage

        @Nullable
        public @Nullable java.lang.String alertLaunchImage()
        Deprecated.
        used as the launch image (UILaunchImageFile) when launch button is tapped
      • alertTitle

        @Nullable
        public @Nullable java.lang.String alertTitle()
        Deprecated.
        defaults to nil. pass a string or localized string key API-Since: 8.2
      • applicationIconBadgeNumber

        public long applicationIconBadgeNumber()
        Deprecated.
        0 means no change. defaults to 0
      • category

        @Nullable
        public @Nullable java.lang.String category()
        Deprecated.
        category identifier of the local notification, as set on a UIUserNotificationCategory and passed to +[UIUserNotificationSettings settingsForTypes:categories:] API-Since: 8.0
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
        Specified by:
        copyWithZone in interface NSCopying
      • encodeWithCoder

        public void encodeWithCoder​(@NotNull
                                    @NotNull NSCoder coder)
        Deprecated.
        Specified by:
        encodeWithCoder in interface NSCoding
      • fireDate

        @Nullable
        public @Nullable NSDate fireDate()
        Deprecated.
        timer-based scheduling
      • hasAction

        public boolean hasAction()
        Deprecated.
        defaults to YES. pass NO to hide launching button/slider
      • region

        @Nullable
        public @Nullable CLRegion region()
        Deprecated.
        set a CLRegion object to trigger the notification when the user enters or leaves a geographic region, depending upon the properties set on the CLRegion object itself. registering multiple UILocalNotifications with different regions containing the same identifier will result in undefined behavior. the number of region-triggered UILocalNotifications that may be registered at any one time is internally limited. in order to use region-triggered notifications, applications must have "when-in-use" authorization through CoreLocation. see the CoreLocation documentation for more information. API-Since: 8.0
      • regionTriggersOnce

        public boolean regionTriggersOnce()
        Deprecated.
        when YES, the notification will only fire one time. when NO, the notification will fire every time the region is entered or exited (depending upon the CLRegion object's configuration). default is YES. API-Since: 8.0
      • repeatCalendar

        @Nullable
        public @Nullable NSCalendar repeatCalendar()
        Deprecated.
      • repeatInterval

        public long repeatInterval()
        Deprecated.
        0 means don't repeat
      • setAlertAction

        public void setAlertAction​(@Nullable
                                   @Nullable java.lang.String value)
        Deprecated.
        used in UIAlert button or 'slide to unlock...' slider in place of unlock
      • setAlertBody

        public void setAlertBody​(@Nullable
                                 @Nullable java.lang.String value)
        Deprecated.
        defaults to nil. pass a string or localized string key to show an alert
      • setAlertLaunchImage

        public void setAlertLaunchImage​(@Nullable
                                        @Nullable java.lang.String value)
        Deprecated.
        used as the launch image (UILaunchImageFile) when launch button is tapped
      • setAlertTitle

        public void setAlertTitle​(@Nullable
                                  @Nullable java.lang.String value)
        Deprecated.
        defaults to nil. pass a string or localized string key API-Since: 8.2
      • setApplicationIconBadgeNumber

        public void setApplicationIconBadgeNumber​(long value)
        Deprecated.
        0 means no change. defaults to 0
      • setCategory

        public void setCategory​(@Nullable
                                @Nullable java.lang.String value)
        Deprecated.
        category identifier of the local notification, as set on a UIUserNotificationCategory and passed to +[UIUserNotificationSettings settingsForTypes:categories:] API-Since: 8.0
      • setFireDate

        public void setFireDate​(@Nullable
                                @Nullable NSDate value)
        Deprecated.
        timer-based scheduling
      • setHasAction

        public void setHasAction​(boolean value)
        Deprecated.
        defaults to YES. pass NO to hide launching button/slider
      • setRegion

        public void setRegion​(@Nullable
                              @Nullable CLRegion value)
        Deprecated.
        set a CLRegion object to trigger the notification when the user enters or leaves a geographic region, depending upon the properties set on the CLRegion object itself. registering multiple UILocalNotifications with different regions containing the same identifier will result in undefined behavior. the number of region-triggered UILocalNotifications that may be registered at any one time is internally limited. in order to use region-triggered notifications, applications must have "when-in-use" authorization through CoreLocation. see the CoreLocation documentation for more information. API-Since: 8.0
      • setRegionTriggersOnce

        public void setRegionTriggersOnce​(boolean value)
        Deprecated.
        when YES, the notification will only fire one time. when NO, the notification will fire every time the region is entered or exited (depending upon the CLRegion object's configuration). default is YES. API-Since: 8.0
      • setRepeatCalendar

        public void setRepeatCalendar​(@Nullable
                                      @Nullable NSCalendar value)
        Deprecated.
      • setRepeatInterval

        public void setRepeatInterval​(long value)
        Deprecated.
        0 means don't repeat
      • setSoundName

        public void setSoundName​(@Nullable
                                 @Nullable java.lang.String value)
        Deprecated.
        name of resource in app's bundle to play or UILocalNotificationDefaultSoundName
      • setTimeZone

        public void setTimeZone​(@Nullable
                                @Nullable NSTimeZone value)
        Deprecated.
        the time zone to interpret fireDate in. pass nil if fireDate is an absolute GMT time (e.g. for an egg timer). pass a time zone to interpret fireDate as a wall time to be adjusted automatically upon time zone changes (e.g. for an alarm clock).
      • setUserInfo

        public void setUserInfo​(@Nullable
                                @Nullable NSDictionary<?,​?> value)
        Deprecated.
        throws if contains non-property list types
      • soundName

        @Nullable
        public @Nullable java.lang.String soundName()
        Deprecated.
        name of resource in app's bundle to play or UILocalNotificationDefaultSoundName
      • timeZone

        @Nullable
        public @Nullable NSTimeZone timeZone()
        Deprecated.
        the time zone to interpret fireDate in. pass nil if fireDate is an absolute GMT time (e.g. for an egg timer). pass a time zone to interpret fireDate as a wall time to be adjusted automatically upon time zone changes (e.g. for an alarm clock).
      • userInfo

        @Nullable
        public @Nullable NSDictionary<?,​?> userInfo()
        Deprecated.
        throws if contains non-property list types
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.