Package org.robovm.apple.uikit
Interface UIApplicationDelegate
- All Superinterfaces:
NSObjectProtocol,ObjCProtocol
- All Known Subinterfaces:
CPApplicationDelegate
- All Known Implementing Classes:
CPApplicationDelegateAdapter,UIApplicationDelegateAdapter
public interface UIApplicationDelegate extends NSObjectProtocol
-
Method Summary
-
Method Details
-
getWindow
UIWindow getWindow() -
setWindow
-
didFinishLaunching
-
willFinishLaunching
-
didFinishLaunching
-
didBecomeActive
-
willResignActive
-
handleOpenURL
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
- Since:
- Available in iOS 9.0 and later.
-
didReceiveMemoryWarning
-
willTerminate
-
significantTimeChange
-
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.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
didChangStatusBarFrame
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
-
didFailToRegisterForRemoteNotifications
-
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
- Since:
- Available in iOS 9.0 and later.
-
getHandlerForIntent
- 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
-
willEnterForeground
-
protectedDataDidBecomeAvailable
-
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
- Since:
- Available in iOS 13.2 and later.
-
shouldRestoreSecureApplicationState
- Since:
- Available in iOS 13.2 and later.
-
willEncodeRestorableState
-
didDecodeRestorableState
-
shouldSaveApplicationState
Deprecated.Deprecated in iOS 13.2. Use application:shouldSaveSecureApplicationState: instead -
shouldRestoreApplicationState
Deprecated.Deprecated in iOS 13.2. Use application:shouldRestoreSecureApplicationState: instead -
willContinueUserActivity
-
continueUserActivity
boolean continueUserActivity(UIApplication application, NSUserActivity userActivity, VoidBlock1<NSArray<UIResponder>> restorationHandler) -
didFailToContinueUserActivity
void didFailToContinueUserActivity(UIApplication application, String userActivityType, NSError error) -
didUpdateUserActivity
-
getConfigurationForConnectingSceneSession
UISceneConfiguration getConfigurationForConnectingSceneSession(UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options)- Since:
- Available in iOS 13.0 and later.
-
didDiscardSceneSessions
- Since:
- Available in iOS 13.0 and later.
-
applicationShouldAutomaticallyLocalizeKeyCommands
- Since:
- Available in iOS 15.0 and later.
-