Package apple.uikit

Class UIApplication

    • Constructor Detail

      • UIApplication

        protected UIApplication​(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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • 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()
      • registerObjectForStateRestorationRestorationIdentifier

        public static void registerObjectForStateRestorationRestorationIdentifier​(UIStateRestoring object,
                                                                                  java.lang.String restorationIdentifier)
        Register non-View/ViewController objects for state restoration so other objects can reference them within state restoration archives. If the object implements encode/decode, those methods will be called during save/restore. Obj and identifier must not be nil, or will raise UIRestorationObjectRegistrationException. Objects do not need to be unregistered when they are deleted, the State Restoration system will notice and stop tracking the object.
      • 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)
      • sharedApplication

        public static UIApplication sharedApplication()
      • superclass_static

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

        public static long version_static()
      • applicationIconBadgeNumber

        public long applicationIconBadgeNumber()
        set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to set the icon badge.
      • applicationState

        public long applicationState()
      • applicationSupportsShakeToEdit

        public boolean applicationSupportsShakeToEdit()
      • backgroundRefreshStatus

        public long backgroundRefreshStatus()
        When background refresh is available for an application, it may launched or resumed in the background to handle significant location changes, remote notifications, background fetches, etc. Observe UIApplicationBackgroundRefreshStatusDidChangeNotification to be notified of changes.
      • backgroundTimeRemaining

        public double backgroundTimeRemaining()
      • beginIgnoringInteractionEvents

        public void beginIgnoringInteractionEvents()
        nested. set should be set during animations & transitions to ignore touch and other events
      • beginReceivingRemoteControlEvents

        public void beginReceivingRemoteControlEvents()
      • canOpenURL

        public boolean canOpenURL​(NSURL url)
      • cancelAllLocalNotifications

        public void cancelAllLocalNotifications()
      • cancelLocalNotification

        public void cancelLocalNotification​(UILocalNotification notification)
      • clearKeepAliveTimeout

        @Deprecated
        public void clearKeepAliveTimeout()
        Deprecated.
      • completeStateRestoration

        public void completeStateRestoration()
      • currentUserNotificationSettings

        public UIUserNotificationSettings currentUserNotificationSettings()
        Returns the enabled user notification settings, also taking into account any systemwide settings.
      • enabledRemoteNotificationTypes

        @Deprecated
        public long enabledRemoteNotificationTypes()
        Deprecated.
        Returns the enabled types, also taking into account any systemwide settings; doesn't relate to connectivity.
      • endBackgroundTask

        public void endBackgroundTask​(long identifier)
      • endIgnoringInteractionEvents

        public void endIgnoringInteractionEvents()
      • endReceivingRemoteControlEvents

        public void endReceivingRemoteControlEvents()
      • extendStateRestoration

        public void extendStateRestoration()
        These methods are used to inform the system that state restoration is occuring asynchronously after the application has processed its restoration archive on launch. In the even of a crash, the system will be able to detect that it may have been caused by a bad restoration archive and arrange to ignore it on a subsequent application launch.
      • ignoreSnapshotOnNextApplicationLaunch

        public void ignoreSnapshotOnNextApplicationLaunch()
        Indicate the application should not use the snapshot on next launch, even if there is a valid state restoration archive. This should only be called from methods invoked from State Preservation, else it is ignored.
      • isIdleTimerDisabled

        public boolean isIdleTimerDisabled()
        default is NO
      • setIdleTimerDisabled

        public void setIdleTimerDisabled​(boolean value)
        default is NO
      • isIgnoringInteractionEvents

        public boolean isIgnoringInteractionEvents()
        returns YES if we are at least one deep in ignoring events
      • isNetworkActivityIndicatorVisible

        public boolean isNetworkActivityIndicatorVisible()
      • setNetworkActivityIndicatorVisible

        public void setNetworkActivityIndicatorVisible​(boolean value)
      • isProtectedDataAvailable

        public boolean isProtectedDataAvailable()
      • isProximitySensingEnabled

        @Deprecated
        public boolean isProximitySensingEnabled()
        Deprecated.
        default is NO. see UIDevice for replacement
      • setProximitySensingEnabled

        @Deprecated
        public void setProximitySensingEnabled​(boolean value)
        Deprecated.
        default is NO. see UIDevice for replacement
      • isRegisteredForRemoteNotifications

        public boolean isRegisteredForRemoteNotifications()
        Returns YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.
      • isStatusBarHidden

        public boolean isStatusBarHidden()
      • setStatusBarHidden

        @Deprecated
        public void setStatusBarHidden​(boolean value)
        Deprecated.
        Setting statusBarHidden does nothing if your application is using the default UIViewController-based status bar system.
      • keyWindow

        public UIWindow keyWindow()
      • openURL

        public boolean openURL​(NSURL url)
      • openURLOptionsCompletionHandler

        public void openURLOptionsCompletionHandler​(NSURL url,
                                                    NSDictionary<java.lang.String,​?> options,
                                                    UIApplication.Block_openURLOptionsCompletionHandler completion)
        Options are specified in the section below for openURL options. An empty options dictionary will result in the same behavior as the older openURL call, aside from the fact that this is asynchronous and calls the completion handler rather than returning a result. The completion handler is called on the main queue.
      • preferredContentSizeCategory

        public java.lang.String preferredContentSizeCategory()
        Return the size category
      • presentLocalNotificationNow

        public void presentLocalNotificationNow​(UILocalNotification notification)
      • registerForRemoteNotificationTypes

        @Deprecated
        public void registerForRemoteNotificationTypes​(long types)
        Deprecated.
      • registerForRemoteNotifications

        public void registerForRemoteNotifications()
        Calling this will result in either application:didRegisterForRemoteNotificationsWithDeviceToken: or application:didFailToRegisterForRemoteNotificationsWithError: to be called on the application delegate. Note: these callbacks will be made only if the application has successfully registered for user notifications with registerUserNotificationSettings:, or if it is enabled for Background App Refresh.
      • registerUserNotificationSettings

        public void registerUserNotificationSettings​(UIUserNotificationSettings notificationSettings)
        Registering UIUserNotificationSettings more than once results in previous settings being overwritten.
      • scheduleLocalNotification

        public void scheduleLocalNotification​(UILocalNotification notification)
        copies notification
      • sendActionToFromForEvent

        public boolean sendActionToFromForEvent​(org.moe.natj.objc.SEL action,
                                                java.lang.Object target,
                                                java.lang.Object sender,
                                                UIEvent event)
      • sendEvent

        public void sendEvent​(UIEvent event)
      • setApplicationIconBadgeNumber

        public void setApplicationIconBadgeNumber​(long value)
        set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to set the icon badge.
      • setApplicationSupportsShakeToEdit

        public void setApplicationSupportsShakeToEdit​(boolean value)
      • setMinimumBackgroundFetchInterval

        public void setMinimumBackgroundFetchInterval​(double minimumBackgroundFetchInterval)
        The system guarantees that it will not wake up your application for a background fetch more frequently than the interval provided. Set to UIApplicationBackgroundFetchIntervalMinimum to be woken as frequently as the system desires, or to UIApplicationBackgroundFetchIntervalNever (the default) to never be woken for a background fetch. This setter will have no effect unless your application has the "fetch" UIBackgroundMode. See the UIApplicationDelegate method `application:performFetchWithCompletionHandler:` for more.
      • setNewsstandIconImage

        @Deprecated
        public void setNewsstandIconImage​(UIImage image)
        Deprecated.
      • setShortcutItems

        public void setShortcutItems​(NSArray<? extends UIApplicationShortcutItem> value)
        Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
      • setStatusBarHiddenAnimated

        @Deprecated
        public void setStatusBarHiddenAnimated​(boolean hidden,
                                               boolean animated)
        Deprecated.
      • setStatusBarHiddenWithAnimation

        @Deprecated
        public void setStatusBarHiddenWithAnimation​(boolean hidden,
                                                    long animation)
        Deprecated.
      • setStatusBarOrientation

        @Deprecated
        public void setStatusBarOrientation​(long value)
        Deprecated.
        Explicit setting of the status bar orientation is more limited in iOS 6.0 and later.
      • setStatusBarOrientationAnimated

        @Deprecated
        public void setStatusBarOrientationAnimated​(long interfaceOrientation,
                                                    boolean animated)
        Deprecated.
      • setStatusBarStyle

        @Deprecated
        public void setStatusBarStyle​(long value)
        Deprecated.
        Setting the statusBarStyle does nothing if your application is using the default UIViewController-based status bar system.
      • setStatusBarStyleAnimated

        @Deprecated
        public void setStatusBarStyleAnimated​(long statusBarStyle,
                                              boolean animated)
        Deprecated.
      • shortcutItems

        public NSArray<? extends UIApplicationShortcutItem> shortcutItems()
        Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
      • statusBarFrame

        public CGRect statusBarFrame()
        returns CGRectZero if the status bar is hidden
      • statusBarOrientation

        public long statusBarOrientation()
      • statusBarOrientationAnimationDuration

        public double statusBarOrientationAnimationDuration()
        Returns the animation duration for the status bar during a 90 degree orientation change. It should be doubled for a 180 degree orientation change.
      • statusBarStyle

        public long statusBarStyle()
        default is UIStatusBarStyleDefault
      • supportedInterfaceOrientationsForWindow

        public long supportedInterfaceOrientationsForWindow​(UIWindow window)
        The system only calls this method if the application delegate has not implemented the delegate equivalent. It returns the orientations specified by the application's info.plist. If no supported interface orientations were specified it will return UIInterfaceOrientationMaskAll on an iPad and UIInterfaceOrientationMaskAllButUpsideDown on a phone. The return value should be one of the UIInterfaceOrientationMask values which indicates the orientations supported by this application.
      • unregisterForRemoteNotifications

        public void unregisterForRemoteNotifications()
      • userInterfaceLayoutDirection

        public long userInterfaceLayoutDirection()
      • alternateIconName

        public java.lang.String alternateIconName()
        If `nil`, the primary application icon is being used.
      • setAlternateIconNameCompletionHandler

        public void setAlternateIconNameCompletionHandler​(java.lang.String alternateIconName,
                                                          UIApplication.Block_setAlternateIconNameCompletionHandler completionHandler)
        Pass `nil` to use the primary application icon. The completion handler will be invoked asynchronously on an arbitrary background queue; be sure to dispatch back to the main queue before doing any further UI work.
      • supportsAlternateIcons

        public boolean supportsAlternateIcons()
        If false, alternate icons are not supported for the current process.
      • connectedScenes

        public NSSet<? extends UIScene> connectedScenes()
        All of the currently connected UIScene instances
      • openSessions

        public NSSet<? extends UISceneSession> openSessions()
        All of the representations that currently have connected UIScene instances or had their sessions persisted by the system (ex: visible in iOS' switcher)
      • requestSceneSessionActivationUserActivityOptionsErrorHandler

        public void requestSceneSessionActivationUserActivityOptionsErrorHandler​(UISceneSession sceneSession,
                                                                                 NSUserActivity userActivity,
                                                                                 UISceneActivationRequestOptions options,
                                                                                 UIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandler errorHandler)
        Request a given session be activated, first connecting it to the application if necessary. Providing a session will activate, connecting if necessary, the interface backed by the already existing UISceneSession. Providing a user activity will dispatch that activity to the provided session's scene. If no session is provided, then the system will select one (possibly creating a new session, if appropriate) and pass the activity to the session scene's delegate.
      • requestSceneSessionRefresh

        public void requestSceneSessionRefresh​(UISceneSession sceneSession)
        requests that any system UI representing a scene be updated due to background updates or any other relevant model/state update.
      • supportsMultipleScenes

        public boolean supportsMultipleScenes()
        returns YES if the application both declares multiple scene support in its info.plist and the executing environment allows multiple scenes for at least one system type. NO otherwise.