Class UIApplication

    • Constructor Detail

      • UIApplication

        public UIApplication()
      • UIApplication

        protected UIApplication​(NSObject.Handle h,
                                long handle)
    • Method Detail

      • getSharedApplication

        public static UIApplication getSharedApplication()
      • isIgnoringInteractionEvents

        public boolean isIgnoringInteractionEvents()
      • isIdleTimerDisabled

        public boolean isIdleTimerDisabled()
      • setIdleTimerDisabled

        public void setIdleTimerDisabled​(boolean v)
      • getKeyWindow

        public UIWindow getKeyWindow()
      • isNetworkActivityIndicatorVisible

        public boolean isNetworkActivityIndicatorVisible()
      • setNetworkActivityIndicatorVisible

        public void setNetworkActivityIndicatorVisible​(boolean v)
      • isStatusBarHidden

        public boolean isStatusBarHidden()
      • getStatusBarOrientationAnimationDuration

        public double getStatusBarOrientationAnimationDuration()
      • getStatusBarFrame

        public CGRect getStatusBarFrame()
      • getApplicationIconBadgeNumber

        public long getApplicationIconBadgeNumber()
      • setApplicationIconBadgeNumber

        public void setApplicationIconBadgeNumber​(long v)
      • supportsShakeToEdit

        public boolean supportsShakeToEdit()
        Since:
        Available in iOS 3.0 and later.
      • setSupportsShakeToEdit

        public void setSupportsShakeToEdit​(boolean v)
        Since:
        Available in iOS 3.0 and later.
      • getApplicationState

        public UIApplicationState getApplicationState()
        Since:
        Available in iOS 4.0 and later.
      • getBackgroundTimeRemaining

        public double getBackgroundTimeRemaining()
        Since:
        Available in iOS 4.0 and later.
      • getBackgroundRefreshStatus

        public UIBackgroundRefreshStatus getBackgroundRefreshStatus()
        Since:
        Available in iOS 7.0 and later.
      • isProtectedDataAvailable

        public boolean isProtectedDataAvailable()
        Since:
        Available in iOS 4.0 and later.
      • getPreferredContentSizeCategory

        public java.lang.String getPreferredContentSizeCategory()
        Since:
        Available in iOS 7.0 and later.
      • isRegisteredForRemoteNotifications

        public boolean isRegisteredForRemoteNotifications()
        Since:
        Available in iOS 8.0 and later.
      • getScheduledLocalNotifications

        @Deprecated
        public NSArray<UILocalNotification> getScheduledLocalNotifications()
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]
        Since:
        Available in iOS 4.0 and later.
      • setScheduledLocalNotifications

        @Deprecated
        public void setScheduledLocalNotifications​(NSArray<UILocalNotification> v)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]
        Since:
        Available in iOS 4.0 and later.
      • getCurrentUserNotificationSettings

        @Deprecated
        public UIUserNotificationSettings getCurrentUserNotificationSettings()
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]
        Since:
        Available in iOS 8.0 and later.
      • supportsAlternateIcons

        public boolean supportsAlternateIcons()
        Since:
        Available in iOS 10.3 and later.
      • getAlternateIconName

        public java.lang.String getAlternateIconName()
        Since:
        Available in iOS 10.3 and later.
      • setStatusBarOrientation

        @Deprecated
        public void setStatusBarOrientation​(UIInterfaceOrientation v)
        Deprecated.
        Deprecated in iOS 9.0. Explicit setting of the status bar orientation is more limited in iOS 6.0 and later
        Since:
        Available in iOS 2.0 and later.
      • setStatusBarStyle

        @Deprecated
        public void setStatusBarStyle​(UIStatusBarStyle v)
        Deprecated.
        Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle]
        Since:
        Available in iOS 2.0 and later.
      • setStatusBarHidden

        @Deprecated
        public void setStatusBarHidden​(boolean v)
        Deprecated.
        Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden]
        Since:
        Available in iOS 2.0 and later.
      • ContentSizeCategoryDidChangeNotification

        public static NSString ContentSizeCategoryDidChangeNotification()
        Since:
        Available in iOS 7.0 and later.
      • ContentSizeCategoryNewValueKey

        protected static NSString ContentSizeCategoryNewValueKey()
        Since:
        Available in iOS 7.0 and later.
      • getInvalidBackgroundTask

        public static long getInvalidBackgroundTask()
        Since:
        Available in iOS 4.0 and later.
      • getMinimumKeepAliveTimeout

        public static double getMinimumKeepAliveTimeout()
        Since:
        Available in iOS 4.0 and later.
      • getBackgroundFetchIntervalMinimum

        public static double getBackgroundFetchIntervalMinimum()
        Since:
        Available in iOS 7.0 and later.
      • getBackgroundFetchIntervalNever

        public static double getBackgroundFetchIntervalNever()
        Since:
        Available in iOS 7.0 and later.
      • DidEnterBackgroundNotification

        public static NSString DidEnterBackgroundNotification()
        Since:
        Available in iOS 4.0 and later.
      • WillEnterForegroundNotification

        public static NSString WillEnterForegroundNotification()
        Since:
        Available in iOS 4.0 and later.
      • DidFinishLaunchingNotification

        public static NSString DidFinishLaunchingNotification()
      • DidBecomeActiveNotification

        public static NSString DidBecomeActiveNotification()
      • WillResignActiveNotification

        public static NSString WillResignActiveNotification()
      • DidReceiveMemoryWarningNotification

        public static NSString DidReceiveMemoryWarningNotification()
      • WillTerminateNotification

        public static NSString WillTerminateNotification()
      • SignificantTimeChangeNotification

        public static NSString SignificantTimeChangeNotification()
      • WillChangeStatusBarOrientationNotification

        public static NSString WillChangeStatusBarOrientationNotification()
      • DidChangeStatusBarOrientationNotification

        public static NSString DidChangeStatusBarOrientationNotification()
      • StatusBarOrientationUserInfoKey

        protected static NSString StatusBarOrientationUserInfoKey()
      • WillChangeStatusBarFrameNotification

        public static NSString WillChangeStatusBarFrameNotification()
      • DidChangeStatusBarFrameNotification

        public static NSString DidChangeStatusBarFrameNotification()
      • StatusBarFrameUserInfoKey

        protected static NSString StatusBarFrameUserInfoKey()
      • BackgroundRefreshStatusDidChangeNotification

        public static NSString BackgroundRefreshStatusDidChangeNotification()
        Since:
        Available in iOS 7.0 and later.
      • ProtectedDataWillBecomeUnavailableNotification

        public static NSString ProtectedDataWillBecomeUnavailableNotification()
        Since:
        Available in iOS 4.0 and later.
      • ProtectedDataDidBecomeAvailableNotification

        public static NSString ProtectedDataDidBecomeAvailableNotification()
        Since:
        Available in iOS 4.0 and later.
      • getOpenSettingsURLString

        public static java.lang.String getOpenSettingsURLString()
        Since:
        Available in iOS 8.0 and later.
      • UserDidTakeScreenshotNotification

        public static NSString UserDidTakeScreenshotNotification()
        Since:
        Available in iOS 7.0 and later.
      • main

        protected static int main​(int argc,
                                  org.robovm.rt.bro.ptr.BytePtr.BytePtrPtr argv,
                                  java.lang.String principalClassName,
                                  java.lang.String delegateClassName)
      • beginIgnoringInteractionEvents

        public void beginIgnoringInteractionEvents()
      • endIgnoringInteractionEvents

        public void endIgnoringInteractionEvents()
      • openURL

        @Deprecated
        public boolean openURL​(NSURL url)
        Deprecated.
        Deprecated in iOS 10.0. Please use openURL:options:completionHandler: instead
        Since:
        Available in iOS 2.0 and later.
      • canOpenURL

        public boolean canOpenURL​(NSURL url)
        Since:
        Available in iOS 3.0 and later.
      • openURL

        public void openURL​(NSURL url,
                            UIApplicationOpenURLOptions options,
                            org.robovm.objc.block.VoidBooleanBlock completion)
        Since:
        Available in iOS 10.0 and later.
      • sendEvent

        public void sendEvent​(UIEvent event)
      • sendAction

        public boolean sendAction​(org.robovm.objc.Selector action,
                                  NSObject target,
                                  NSObject sender,
                                  UIEvent event)
      • beginBackgroundTask

        public long beginBackgroundTask​(java.lang.Runnable handler)
        Since:
        Available in iOS 4.0 and later.
      • beginBackgroundTask

        public long beginBackgroundTask​(java.lang.String taskName,
                                        java.lang.Runnable handler)
        Since:
        Available in iOS 7.0 and later.
      • endBackgroundTask

        public void endBackgroundTask​(long identifier)
        Since:
        Available in iOS 4.0 and later.
      • setMinimumBackgroundFetchInterval

        public void setMinimumBackgroundFetchInterval​(double minimumBackgroundFetchInterval)
        Since:
        Available in iOS 7.0 and later.
      • registerForRemoteNotifications

        public void registerForRemoteNotifications()
        Since:
        Available in iOS 8.0 and later.
      • unregisterForRemoteNotifications

        public void unregisterForRemoteNotifications()
        Since:
        Available in iOS 3.0 and later.
      • registerForRemoteNotificationTypes

        @Deprecated
        public void registerForRemoteNotificationTypes​(UIRemoteNotificationType types)
        Deprecated.
        Deprecated in iOS 8.0. Use -[UIApplication registerForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]
        Since:
        Available in iOS 3.0 and later.
      • getEnabledRemoteNotificationTypes

        @Deprecated
        public UIRemoteNotificationType getEnabledRemoteNotificationTypes()
        Deprecated.
        Deprecated in iOS 8.0. Use -[UIApplication isRegisteredForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote notification and user notification settings
        Since:
        Available in iOS 3.0 and later.
      • presentLocalNotificationNow

        @Deprecated
        public void presentLocalNotificationNow​(UILocalNotification notification)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]
        Since:
        Available in iOS 4.0 and later.
      • scheduleLocalNotification

        @Deprecated
        public void scheduleLocalNotification​(UILocalNotification notification)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]
        Since:
        Available in iOS 4.0 and later.
      • cancelLocalNotification

        @Deprecated
        public void cancelLocalNotification​(UILocalNotification notification)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:]
        Since:
        Available in iOS 4.0 and later.
      • cancelAllLocalNotifications

        @Deprecated
        public void cancelAllLocalNotifications()
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests]
        Since:
        Available in iOS 4.0 and later.
      • registerUserNotificationSettings

        @Deprecated
        public void registerUserNotificationSettings​(UIUserNotificationSettings notificationSettings)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]
        Since:
        Available in iOS 8.0 and later.
      • beginReceivingRemoteControlEvents

        public void beginReceivingRemoteControlEvents()
        Since:
        Available in iOS 4.0 and later.
      • endReceivingRemoteControlEvents

        public void endReceivingRemoteControlEvents()
        Since:
        Available in iOS 4.0 and later.
      • setNewsstandIconImage

        @Deprecated
        public void setNewsstandIconImage​(UIImage image)
        Deprecated.
        Deprecated in iOS 9.0. Newsstand apps now behave like normal apps on SpringBoard
        Since:
        Available in iOS 5.0 and later.
      • setAlternateIcon

        public void setAlternateIcon​(java.lang.String alternateIconName,
                                     org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Since:
        Available in iOS 10.3 and later.
      • extendStateRestoration

        public void extendStateRestoration()
        Since:
        Available in iOS 6.0 and later.
      • completeStateRestoration

        public void completeStateRestoration()
        Since:
        Available in iOS 6.0 and later.
      • ignoreSnapshotOnNextApplicationLaunch

        public void ignoreSnapshotOnNextApplicationLaunch()
        Since:
        Available in iOS 7.0 and later.
      • registerObjectForStateRestoration

        public static void registerObjectForStateRestoration​(UIStateRestoring object,
                                                             java.lang.String restorationIdentifier)
        Since:
        Available in iOS 7.0 and later.
      • setStatusBarOrientation

        @Deprecated
        public void setStatusBarOrientation​(UIInterfaceOrientation interfaceOrientation,
                                            boolean animated)
        Deprecated.
        Deprecated in iOS 9.0. Explicit setting of the status bar orientation is more limited in iOS 6.0 and later
        Since:
        Available in iOS 2.0 and later.
      • setStatusBarStyle

        @Deprecated
        public void setStatusBarStyle​(UIStatusBarStyle statusBarStyle,
                                      boolean animated)
        Deprecated.
        Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle]
        Since:
        Available in iOS 2.0 and later.
      • setStatusBarHidden

        @Deprecated
        public void setStatusBarHidden​(boolean hidden,
                                       UIStatusBarAnimation animation)
        Deprecated.
        Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden]
        Since:
        Available in iOS 3.2 and later.
      • setKeepAliveTimeout

        @Deprecated
        public boolean setKeepAliveTimeout​(double timeout,
                                           java.lang.Runnable keepAliveHandler)
        Deprecated.
        Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method
        Since:
        Available in iOS 4.0 and later.
      • clearKeepAliveTimeout

        @Deprecated
        public void clearKeepAliveTimeout()
        Deprecated.
        Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method
        Since:
        Available in iOS 4.0 and later.