Package apple.uikit

Class UILocalNotification

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSObject

    public class UILocalNotification
    extends NSObject
    implements NSCopying, NSCoding
    In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to schedule and present UILocalNotifications
    • Constructor Detail

      • UILocalNotification

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • alertAction

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

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

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

        public java.lang.String alertTitle()
        defaults to nil. pass a string or localized string key
      • applicationIconBadgeNumber

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

        public java.lang.String category()
        category identifer of the local notification, as set on a UIUserNotificationCategory and passed to +[UIUserNotificationSettings settingsForTypes:categories:]
      • copyWithZone

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

        public NSDate fireDate()
        timer-based scheduling
      • hasAction

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

        public CLRegion region()
        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.
      • regionTriggersOnce

        public boolean regionTriggersOnce()
        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.
      • repeatCalendar

        public NSCalendar repeatCalendar()
      • repeatInterval

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

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

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

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

        public void setAlertTitle​(java.lang.String value)
        defaults to nil. pass a string or localized string key
      • setApplicationIconBadgeNumber

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

        public void setCategory​(java.lang.String value)
        category identifer of the local notification, as set on a UIUserNotificationCategory and passed to +[UIUserNotificationSettings settingsForTypes:categories:]
      • setFireDate

        public void setFireDate​(NSDate value)
        timer-based scheduling
      • setHasAction

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

        public void setRegion​(CLRegion value)
        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.
      • setRegionTriggersOnce

        public void setRegionTriggersOnce​(boolean value)
        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.
      • setRepeatCalendar

        public void setRepeatCalendar​(NSCalendar value)
      • setRepeatInterval

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

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

        public void setTimeZone​(NSTimeZone value)
        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​(NSDictionary<?,​?> value)
        throws if contains non-property list types
      • soundName

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

        public NSTimeZone timeZone()
        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

        public NSDictionary<?,​?> userInfo()
        throws if contains non-property list types