Interface UIApplicationDelegate

    • Method Detail

      • getWindow

        UIWindow getWindow()
        Since:
        Available in iOS 5.0 and later.
      • setWindow

        void setWindow​(UIWindow v)
        Since:
        Available in iOS 5.0 and later.
      • didFinishLaunching

        void didFinishLaunching​(UIApplication application)
      • didBecomeActive

        void didBecomeActive​(UIApplication application)
      • willResignActive

        void willResignActive​(UIApplication application)
      • handleOpenURL

        @Deprecated
        boolean handleOpenURL​(UIApplication application,
                              NSURL url)
        Deprecated.
        Deprecated in iOS 9.0. Please use application:openURL:options:
        Since:
        Available in iOS 2.0 and later.
      • openURL

        @Deprecated
        boolean openURL​(UIApplication application,
                        NSURL url,
                        java.lang.String sourceApplication,
                        NSPropertyList annotation)
        Deprecated.
        Deprecated in iOS 9.0. Please use application:openURL:options:
        Since:
        Available in iOS 4.2 and later.
      • didReceiveMemoryWarning

        void didReceiveMemoryWarning​(UIApplication application)
      • willTerminate

        void willTerminate​(UIApplication application)
      • significantTimeChange

        void significantTimeChange​(UIApplication application)
      • willChangeStatusBarFrame

        void willChangeStatusBarFrame​(UIApplication application,
                                      CGRect newStatusBarFrame)
      • didChangStatusBarFrame

        void didChangStatusBarFrame​(UIApplication application,
                                    CGRect oldStatusBarFrame)
      • didRegisterUserNotificationSettings

        @Deprecated
        void didRegisterUserNotificationSettings​(UIApplication application,
                                                 UIUserNotificationSettings notificationSettings)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]
        Since:
        Available in iOS 8.0 and later.
      • didRegisterForRemoteNotifications

        void didRegisterForRemoteNotifications​(UIApplication application,
                                               NSData deviceToken)
        Since:
        Available in iOS 3.0 and later.
      • didFailToRegisterForRemoteNotifications

        void didFailToRegisterForRemoteNotifications​(UIApplication application,
                                                     NSError error)
        Since:
        Available in iOS 3.0 and later.
      • didReceiveRemoteNotification

        @Deprecated
        void didReceiveRemoteNotification​(UIApplication application,
                                          UIRemoteNotification userInfo)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] for user visible notifications and -[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] for silent remote notifications
        Since:
        Available in iOS 3.0 and later.
      • didReceiveLocalNotification

        @Deprecated
        void didReceiveLocalNotification​(UIApplication application,
                                         UILocalNotification notification)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
        Since:
        Available in iOS 4.0 and later.
      • handleLocalNotificationAction

        @Deprecated
        void handleLocalNotificationAction​(UIApplication application,
                                           java.lang.String identifier,
                                           UILocalNotification notification,
                                           java.lang.Runnable completionHandler)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
        Since:
        Available in iOS 8.0 and later.
      • handleRemoteNotificationAction

        @Deprecated
        void handleRemoteNotificationAction​(UIApplication application,
                                            java.lang.String identifier,
                                            UIRemoteNotification userInfo,
                                            NSDictionary<?,​?> responseInfo,
                                            java.lang.Runnable completionHandler)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
        Since:
        Available in iOS 9.0 and later.
      • handleRemoteNotificationAction

        @Deprecated
        void handleRemoteNotificationAction​(UIApplication application,
                                            java.lang.String identifier,
                                            UIRemoteNotification userInfo,
                                            java.lang.Runnable completionHandler)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
        Since:
        Available in iOS 8.0 and later.
      • handleLocalNotificationAction

        @Deprecated
        void handleLocalNotificationAction​(UIApplication application,
                                           java.lang.String identifier,
                                           UILocalNotification notification,
                                           NSDictionary<?,​?> responseInfo,
                                           java.lang.Runnable completionHandler)
        Deprecated.
        Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
        Since:
        Available in iOS 9.0 and later.
      • performFetch

        void performFetch​(UIApplication application,
                          org.robovm.objc.block.VoidBlock1<UIBackgroundFetchResult> completionHandler)
        Since:
        Available in iOS 7.0 and later.
      • performAction

        void performAction​(UIApplication application,
                           UIApplicationShortcutItem shortcutItem,
                           org.robovm.objc.block.VoidBooleanBlock completionHandler)
        Since:
        Available in iOS 9.0 and later.
      • handleEventsForBackgroundURLSession

        void handleEventsForBackgroundURLSession​(UIApplication application,
                                                 java.lang.String identifier,
                                                 java.lang.Runnable completionHandler)
        Since:
        Available in iOS 7.0 and later.
      • handleWatchKitExtensionRequest

        void handleWatchKitExtensionRequest​(UIApplication application,
                                            NSDictionary<?,​?> userInfo,
                                            org.robovm.objc.block.VoidBlock1<NSDictionary<?,​?>> reply)
        Since:
        Available in iOS 8.2 and later.
      • shouldRequestHealthAuthorization

        void shouldRequestHealthAuthorization​(UIApplication application)
        Since:
        Available in iOS 9.0 and later.
      • handleIntent

        void handleIntent​(UIApplication application,
                          INIntent intent,
                          org.robovm.objc.block.VoidBlock1<INIntentResponse> completionHandler)
        Since:
        Available in iOS 11.0 and later.
      • didEnterBackground

        void didEnterBackground​(UIApplication application)
        Since:
        Available in iOS 4.0 and later.
      • willEnterForeground

        void willEnterForeground​(UIApplication application)
        Since:
        Available in iOS 4.0 and later.
      • protectedDataWillBecomeUnavailable

        void protectedDataWillBecomeUnavailable​(UIApplication application)
        Since:
        Available in iOS 4.0 and later.
      • protectedDataDidBecomeAvailable

        void protectedDataDidBecomeAvailable​(UIApplication application)
        Since:
        Available in iOS 4.0 and later.
      • getViewController

        UIViewController getViewController​(UIApplication application,
                                           java.util.List<java.lang.String> identifierComponents,
                                           NSCoder coder)
        Since:
        Available in iOS 6.0 and later.
      • shouldSaveApplicationState

        boolean shouldSaveApplicationState​(UIApplication application,
                                           NSCoder coder)
        Since:
        Available in iOS 6.0 and later.
      • shouldRestoreApplicationState

        boolean shouldRestoreApplicationState​(UIApplication application,
                                              NSCoder coder)
        Since:
        Available in iOS 6.0 and later.
      • willEncodeRestorableState

        void willEncodeRestorableState​(UIApplication application,
                                       NSCoder coder)
        Since:
        Available in iOS 6.0 and later.
      • didDecodeRestorableState

        void didDecodeRestorableState​(UIApplication application,
                                      NSCoder coder)
        Since:
        Available in iOS 6.0 and later.
      • willContinueUserActivity

        boolean willContinueUserActivity​(UIApplication application,
                                         java.lang.String userActivityType)
        Since:
        Available in iOS 8.0 and later.
      • continueUserActivity

        boolean continueUserActivity​(UIApplication application,
                                     NSUserActivity userActivity,
                                     org.robovm.objc.block.VoidBlock1<NSArray<UIResponder>> restorationHandler)
        Since:
        Available in iOS 8.0 and later.
      • didFailToContinueUserActivity

        void didFailToContinueUserActivity​(UIApplication application,
                                           java.lang.String userActivityType,
                                           NSError error)
        Since:
        Available in iOS 8.0 and later.
      • didUpdateUserActivity

        void didUpdateUserActivity​(UIApplication application,
                                   NSUserActivity userActivity)
        Since:
        Available in iOS 8.0 and later.
      • didAcceptCloudKitShare

        void didAcceptCloudKitShare​(UIApplication application,
                                    CKShareMetadata cloudKitShareMetadata)
        Since:
        Available in iOS 10.0 and later.