Interface UIApplicationDelegate

All Superinterfaces:
NSObjectProtocol, ObjCProtocol
All Known Subinterfaces:
CPApplicationDelegate
All Known Implementing Classes:
CPApplicationDelegateAdapter, UIApplicationDelegateAdapter

public interface UIApplicationDelegate
extends NSObjectProtocol
  • Method Details

    • getWindow

      UIWindow getWindow()
    • setWindow

      void setWindow​(UIWindow v)
    • didFinishLaunching

      void didFinishLaunching​(UIApplication application)
    • willFinishLaunching

      boolean willFinishLaunching​(UIApplication application, UIApplicationLaunchOptions launchOptions)
    • didFinishLaunching

      boolean didFinishLaunching​(UIApplication application, UIApplicationLaunchOptions launchOptions)
    • didBecomeActive

      void didBecomeActive​(UIApplication application)
    • willResignActive

      void willResignActive​(UIApplication application)
    • handleOpenURL

      @Deprecated boolean handleOpenURL​(UIApplication application, NSURL url)
      Deprecated.
      Deprecated in iOS 9.0. Use application:openURL:options:
    • openURL

      @Deprecated boolean openURL​(UIApplication application, NSURL url, String sourceApplication, NSPropertyList annotation)
      Deprecated.
      Deprecated in iOS 9.0. Use application:openURL:options:
    • openURL

      boolean openURL​(UIApplication app, NSURL url, UIApplicationOpenURLOptions options)
      Since:
      Available in iOS 9.0 and later.
    • didReceiveMemoryWarning

      void didReceiveMemoryWarning​(UIApplication application)
    • willTerminate

      void willTerminate​(UIApplication application)
    • significantTimeChange

      void significantTimeChange​(UIApplication application)
    • willChangeStatusBarOrientation

      @Deprecated void willChangeStatusBarOrientation​(UIApplication application, UIInterfaceOrientation newStatusBarOrientation, double duration)
      Deprecated.
      Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead.
    • didChangStatusBarOrientation

      @Deprecated void didChangStatusBarOrientation​(UIApplication application, UIInterfaceOrientation oldStatusBarOrientation)
      Deprecated.
      Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead.
    • willChangeStatusBarFrame

      @Deprecated void willChangeStatusBarFrame​(UIApplication application, CGRect newStatusBarFrame)
      Deprecated.
      Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead.
    • didChangStatusBarFrame

      @Deprecated void didChangStatusBarFrame​(UIApplication application, CGRect oldStatusBarFrame)
      Deprecated.
      Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead.
    • didRegisterUserNotificationSettings

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

      void didRegisterForRemoteNotifications​(UIApplication application, NSData deviceToken)
    • didFailToRegisterForRemoteNotifications

      void didFailToRegisterForRemoteNotifications​(UIApplication application, NSError error)
    • 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
    • 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:]
    • handleLocalNotificationAction

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

      @Deprecated void handleRemoteNotificationAction​(UIApplication application, String identifier, UIRemoteNotification userInfo, NSDictionary<?,​?> responseInfo, 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, String identifier, UIRemoteNotification userInfo, Runnable completionHandler)
      Deprecated.
      Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]
    • handleLocalNotificationAction

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

      void didReceiveRemoteNotification​(UIApplication application, UIRemoteNotification userInfo, VoidBlock1<UIBackgroundFetchResult> completionHandler)
    • performFetch

      @Deprecated void performFetch​(UIApplication application, VoidBlock1<UIBackgroundFetchResult> completionHandler)
      Deprecated.
      Deprecated in iOS 13.0. Use a BGAppRefreshTask in the BackgroundTasks framework instead
    • performAction

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

      void handleEventsForBackgroundURLSession​(UIApplication application, String identifier, Runnable completionHandler)
    • handleWatchKitExtensionRequest

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

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

      NSObject getHandlerForIntent​(UIApplication application, INIntent intent)
      Since:
      Available in iOS 14.0 and later.
    • handleIntent

      @Deprecated void handleIntent​(UIApplication application, INIntent intent, VoidBlock1<INIntentResponse> completionHandler)
      Deprecated.
      Deprecated in iOS 14.0. Use application:handlerForIntent: instead
      Since:
      Available in iOS 11.0 and later.
    • didEnterBackground

      void didEnterBackground​(UIApplication application)
    • willEnterForeground

      void willEnterForeground​(UIApplication application)
    • protectedDataWillBecomeUnavailable

      void protectedDataWillBecomeUnavailable​(UIApplication application)
    • protectedDataDidBecomeAvailable

      void protectedDataDidBecomeAvailable​(UIApplication application)
    • getSupportedInterfaceOrientations

      UIInterfaceOrientationMask getSupportedInterfaceOrientations​(UIApplication application, UIWindow window)
    • shouldAllowExtensionPointIdentifier

      boolean shouldAllowExtensionPointIdentifier​(UIApplication application, UIApplicationExtensionPointIdentifier extensionPointIdentifier)
    • getViewController

      UIViewController getViewController​(UIApplication application, List<String> identifierComponents, NSCoder coder)
    • shouldSaveSecureApplicationState

      boolean shouldSaveSecureApplicationState​(UIApplication application, NSCoder coder)
      Since:
      Available in iOS 13.2 and later.
    • shouldRestoreSecureApplicationState

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

      void willEncodeRestorableState​(UIApplication application, NSCoder coder)
    • didDecodeRestorableState

      void didDecodeRestorableState​(UIApplication application, NSCoder coder)
    • shouldSaveApplicationState

      @Deprecated boolean shouldSaveApplicationState​(UIApplication application, NSCoder coder)
      Deprecated.
      Deprecated in iOS 13.2. Use application:shouldSaveSecureApplicationState: instead
    • shouldRestoreApplicationState

      @Deprecated boolean shouldRestoreApplicationState​(UIApplication application, NSCoder coder)
      Deprecated.
      Deprecated in iOS 13.2. Use application:shouldRestoreSecureApplicationState: instead
    • willContinueUserActivity

      boolean willContinueUserActivity​(UIApplication application, String userActivityType)
    • continueUserActivity

      boolean continueUserActivity​(UIApplication application, NSUserActivity userActivity, VoidBlock1<NSArray<UIResponder>> restorationHandler)
    • didFailToContinueUserActivity

      void didFailToContinueUserActivity​(UIApplication application, String userActivityType, NSError error)
    • didUpdateUserActivity

      void didUpdateUserActivity​(UIApplication application, NSUserActivity userActivity)
    • didAcceptCloudKitShare

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

      UISceneConfiguration getConfigurationForConnectingSceneSession​(UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options)
      Since:
      Available in iOS 13.0 and later.
    • didDiscardSceneSessions

      void didDiscardSceneSessions​(UIApplication application, NSSet<UISceneSession> sceneSessions)
      Since:
      Available in iOS 13.0 and later.
    • applicationShouldAutomaticallyLocalizeKeyCommands

      boolean applicationShouldAutomaticallyLocalizeKeyCommands​(UIApplication application)
      Since:
      Available in iOS 15.0 and later.