Package org.robovm.apple.uikit
Class UIApplicationDelegateAdapter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIApplicationDelegateAdapter
-
- All Implemented Interfaces:
NSObjectProtocol
,UIApplicationDelegate
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
CPApplicationDelegateAdapter
public class UIApplicationDelegateAdapter extends NSObject implements UIApplicationDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Constructor Description UIApplicationDelegateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
continueUserActivity(UIApplication application, NSUserActivity userActivity, org.robovm.objc.block.VoidBlock1<NSArray<UIResponder>> restorationHandler)
void
didAcceptCloudKitShare(UIApplication application, CKShareMetadata cloudKitShareMetadata)
void
didBecomeActive(UIApplication application)
void
didChangStatusBarFrame(UIApplication application, CGRect oldStatusBarFrame)
void
didChangStatusBarOrientation(UIApplication application, UIInterfaceOrientation oldStatusBarOrientation)
void
didDecodeRestorableState(UIApplication application, NSCoder coder)
void
didEnterBackground(UIApplication application)
void
didFailToContinueUserActivity(UIApplication application, java.lang.String userActivityType, NSError error)
void
didFailToRegisterForRemoteNotifications(UIApplication application, NSError error)
void
didFinishLaunching(UIApplication application)
boolean
didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions)
void
didReceiveLocalNotification(UIApplication application, UILocalNotification notification)
Deprecated.Deprecated in iOS 10.0.void
didReceiveMemoryWarning(UIApplication application)
void
didReceiveRemoteNotification(UIApplication application, UIRemoteNotification userInfo)
Deprecated.Deprecated in iOS 10.0.void
didReceiveRemoteNotification(UIApplication application, UIRemoteNotification userInfo, org.robovm.objc.block.VoidBlock1<UIBackgroundFetchResult> completionHandler)
void
didRegisterForRemoteNotifications(UIApplication application, NSData deviceToken)
void
didRegisterUserNotificationSettings(UIApplication application, UIUserNotificationSettings notificationSettings)
Deprecated.Deprecated in iOS 10.0.void
didUpdateUserActivity(UIApplication application, NSUserActivity userActivity)
UIInterfaceOrientationMask
getSupportedInterfaceOrientations(UIApplication application, UIWindow window)
UIViewController
getViewController(UIApplication application, java.util.List<java.lang.String> identifierComponents, NSCoder coder)
UIWindow
getWindow()
void
handleEventsForBackgroundURLSession(UIApplication application, java.lang.String identifier, java.lang.Runnable completionHandler)
void
handleIntent(UIApplication application, INIntent intent, org.robovm.objc.block.VoidBlock1<INIntentResponse> completionHandler)
void
handleLocalNotificationAction(UIApplication application, java.lang.String identifier, UILocalNotification notification, java.lang.Runnable completionHandler)
Deprecated.Deprecated in iOS 10.0.void
handleLocalNotificationAction(UIApplication application, java.lang.String identifier, UILocalNotification notification, NSDictionary<?,?> responseInfo, java.lang.Runnable completionHandler)
Deprecated.Deprecated in iOS 10.0.boolean
handleOpenURL(UIApplication application, NSURL url)
Deprecated.Deprecated in iOS 9.0.void
handleRemoteNotificationAction(UIApplication application, java.lang.String identifier, UIRemoteNotification userInfo, java.lang.Runnable completionHandler)
Deprecated.Deprecated in iOS 10.0.void
handleRemoteNotificationAction(UIApplication application, java.lang.String identifier, UIRemoteNotification userInfo, NSDictionary<?,?> responseInfo, java.lang.Runnable completionHandler)
Deprecated.Deprecated in iOS 10.0.void
handleWatchKitExtensionRequest(UIApplication application, NSDictionary<?,?> userInfo, org.robovm.objc.block.VoidBlock1<NSDictionary<?,?>> reply)
boolean
openURL(UIApplication application, NSURL url, java.lang.String sourceApplication, NSPropertyList annotation)
Deprecated.Deprecated in iOS 9.0.boolean
openURL(UIApplication app, NSURL url, UIApplicationOpenURLOptions options)
void
performAction(UIApplication application, UIApplicationShortcutItem shortcutItem, org.robovm.objc.block.VoidBooleanBlock completionHandler)
void
performFetch(UIApplication application, org.robovm.objc.block.VoidBlock1<UIBackgroundFetchResult> completionHandler)
void
protectedDataDidBecomeAvailable(UIApplication application)
void
protectedDataWillBecomeUnavailable(UIApplication application)
void
setWindow(UIWindow window)
boolean
shouldAllowExtensionPointIdentifier(UIApplication application, UIApplicationExtensionPointIdentifier extensionPointIdentifier)
void
shouldRequestHealthAuthorization(UIApplication application)
boolean
shouldRestoreApplicationState(UIApplication application, NSCoder coder)
boolean
shouldSaveApplicationState(UIApplication application, NSCoder coder)
void
significantTimeChange(UIApplication application)
void
willChangeStatusBarFrame(UIApplication application, CGRect newStatusBarFrame)
void
willChangeStatusBarOrientation(UIApplication application, UIInterfaceOrientation newStatusBarOrientation, double duration)
boolean
willContinueUserActivity(UIApplication application, java.lang.String userActivityType)
void
willEncodeRestorableState(UIApplication application, NSCoder coder)
void
willEnterForeground(UIApplication application)
boolean
willFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions)
void
willResignActive(UIApplication application)
void
willTerminate(UIApplication application)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Method Detail
-
getWindow
public UIWindow getWindow()
- Specified by:
getWindow
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 5.0 and later.
-
setWindow
public void setWindow(UIWindow window)
- Specified by:
setWindow
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 5.0 and later.
-
didReceiveMemoryWarning
public void didReceiveMemoryWarning(UIApplication application)
- Specified by:
didReceiveMemoryWarning
in interfaceUIApplicationDelegate
-
didFinishLaunching
public void didFinishLaunching(UIApplication application)
- Specified by:
didFinishLaunching
in interfaceUIApplicationDelegate
-
willFinishLaunching
public boolean willFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions)
- Specified by:
willFinishLaunching
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
didFinishLaunching
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions)
- Specified by:
didFinishLaunching
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 3.0 and later.
-
didBecomeActive
public void didBecomeActive(UIApplication application)
- Specified by:
didBecomeActive
in interfaceUIApplicationDelegate
-
willResignActive
public void willResignActive(UIApplication application)
- Specified by:
willResignActive
in interfaceUIApplicationDelegate
-
handleOpenURL
@Deprecated public boolean handleOpenURL(UIApplication application, NSURL url)
Deprecated.Deprecated in iOS 9.0. Please use application:openURL:options:- Specified by:
handleOpenURL
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 2.0 and later.
-
openURL
@Deprecated public boolean openURL(UIApplication application, NSURL url, java.lang.String sourceApplication, NSPropertyList annotation)
Deprecated.Deprecated in iOS 9.0. Please use application:openURL:options:- Specified by:
openURL
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.2 and later.
-
openURL
public boolean openURL(UIApplication app, NSURL url, UIApplicationOpenURLOptions options)
- Specified by:
openURL
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 9.0 and later.
-
willTerminate
public void willTerminate(UIApplication application)
- Specified by:
willTerminate
in interfaceUIApplicationDelegate
-
significantTimeChange
public void significantTimeChange(UIApplication application)
- Specified by:
significantTimeChange
in interfaceUIApplicationDelegate
-
willChangeStatusBarOrientation
public void willChangeStatusBarOrientation(UIApplication application, UIInterfaceOrientation newStatusBarOrientation, double duration)
- Specified by:
willChangeStatusBarOrientation
in interfaceUIApplicationDelegate
-
didChangStatusBarOrientation
public void didChangStatusBarOrientation(UIApplication application, UIInterfaceOrientation oldStatusBarOrientation)
- Specified by:
didChangStatusBarOrientation
in interfaceUIApplicationDelegate
-
willChangeStatusBarFrame
public void willChangeStatusBarFrame(UIApplication application, CGRect newStatusBarFrame)
- Specified by:
willChangeStatusBarFrame
in interfaceUIApplicationDelegate
-
didChangStatusBarFrame
public void didChangStatusBarFrame(UIApplication application, CGRect oldStatusBarFrame)
- Specified by:
didChangStatusBarFrame
in interfaceUIApplicationDelegate
-
didRegisterUserNotificationSettings
@Deprecated public void didRegisterUserNotificationSettings(UIApplication application, UIUserNotificationSettings notificationSettings)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]- Specified by:
didRegisterUserNotificationSettings
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
didRegisterForRemoteNotifications
public void didRegisterForRemoteNotifications(UIApplication application, NSData deviceToken)
- Specified by:
didRegisterForRemoteNotifications
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 3.0 and later.
-
didFailToRegisterForRemoteNotifications
public void didFailToRegisterForRemoteNotifications(UIApplication application, NSError error)
- Specified by:
didFailToRegisterForRemoteNotifications
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 3.0 and later.
-
didReceiveRemoteNotification
@Deprecated public 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- Specified by:
didReceiveRemoteNotification
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 3.0 and later.
-
didReceiveLocalNotification
@Deprecated public void didReceiveLocalNotification(UIApplication application, UILocalNotification notification)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]- Specified by:
didReceiveLocalNotification
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.0 and later.
-
handleLocalNotificationAction
@Deprecated public 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:]- Specified by:
handleLocalNotificationAction
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
handleRemoteNotificationAction
@Deprecated public 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:]- Specified by:
handleRemoteNotificationAction
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 9.0 and later.
-
handleRemoteNotificationAction
@Deprecated public 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:]- Specified by:
handleRemoteNotificationAction
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
handleLocalNotificationAction
@Deprecated public 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:]- Specified by:
handleLocalNotificationAction
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 9.0 and later.
-
didReceiveRemoteNotification
public void didReceiveRemoteNotification(UIApplication application, UIRemoteNotification userInfo, org.robovm.objc.block.VoidBlock1<UIBackgroundFetchResult> completionHandler)
- Specified by:
didReceiveRemoteNotification
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 7.0 and later.
-
performFetch
public void performFetch(UIApplication application, org.robovm.objc.block.VoidBlock1<UIBackgroundFetchResult> completionHandler)
- Specified by:
performFetch
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 7.0 and later.
-
performAction
public void performAction(UIApplication application, UIApplicationShortcutItem shortcutItem, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Specified by:
performAction
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 9.0 and later.
-
handleEventsForBackgroundURLSession
public void handleEventsForBackgroundURLSession(UIApplication application, java.lang.String identifier, java.lang.Runnable completionHandler)
- Specified by:
handleEventsForBackgroundURLSession
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 7.0 and later.
-
handleWatchKitExtensionRequest
public void handleWatchKitExtensionRequest(UIApplication application, NSDictionary<?,?> userInfo, org.robovm.objc.block.VoidBlock1<NSDictionary<?,?>> reply)
- Specified by:
handleWatchKitExtensionRequest
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.2 and later.
-
shouldRequestHealthAuthorization
public void shouldRequestHealthAuthorization(UIApplication application)
- Specified by:
shouldRequestHealthAuthorization
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 9.0 and later.
-
handleIntent
public void handleIntent(UIApplication application, INIntent intent, org.robovm.objc.block.VoidBlock1<INIntentResponse> completionHandler)
- Specified by:
handleIntent
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 11.0 and later.
-
didEnterBackground
public void didEnterBackground(UIApplication application)
- Specified by:
didEnterBackground
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.0 and later.
-
willEnterForeground
public void willEnterForeground(UIApplication application)
- Specified by:
willEnterForeground
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.0 and later.
-
protectedDataWillBecomeUnavailable
public void protectedDataWillBecomeUnavailable(UIApplication application)
- Specified by:
protectedDataWillBecomeUnavailable
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.0 and later.
-
protectedDataDidBecomeAvailable
public void protectedDataDidBecomeAvailable(UIApplication application)
- Specified by:
protectedDataDidBecomeAvailable
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 4.0 and later.
-
getSupportedInterfaceOrientations
public UIInterfaceOrientationMask getSupportedInterfaceOrientations(UIApplication application, UIWindow window)
- Specified by:
getSupportedInterfaceOrientations
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
shouldAllowExtensionPointIdentifier
public boolean shouldAllowExtensionPointIdentifier(UIApplication application, UIApplicationExtensionPointIdentifier extensionPointIdentifier)
- Specified by:
shouldAllowExtensionPointIdentifier
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
getViewController
public UIViewController getViewController(UIApplication application, java.util.List<java.lang.String> identifierComponents, NSCoder coder)
- Specified by:
getViewController
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
shouldSaveApplicationState
public boolean shouldSaveApplicationState(UIApplication application, NSCoder coder)
- Specified by:
shouldSaveApplicationState
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
shouldRestoreApplicationState
public boolean shouldRestoreApplicationState(UIApplication application, NSCoder coder)
- Specified by:
shouldRestoreApplicationState
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
willEncodeRestorableState
public void willEncodeRestorableState(UIApplication application, NSCoder coder)
- Specified by:
willEncodeRestorableState
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
didDecodeRestorableState
public void didDecodeRestorableState(UIApplication application, NSCoder coder)
- Specified by:
didDecodeRestorableState
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 6.0 and later.
-
willContinueUserActivity
public boolean willContinueUserActivity(UIApplication application, java.lang.String userActivityType)
- Specified by:
willContinueUserActivity
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
continueUserActivity
public boolean continueUserActivity(UIApplication application, NSUserActivity userActivity, org.robovm.objc.block.VoidBlock1<NSArray<UIResponder>> restorationHandler)
- Specified by:
continueUserActivity
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
didFailToContinueUserActivity
public void didFailToContinueUserActivity(UIApplication application, java.lang.String userActivityType, NSError error)
- Specified by:
didFailToContinueUserActivity
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
didUpdateUserActivity
public void didUpdateUserActivity(UIApplication application, NSUserActivity userActivity)
- Specified by:
didUpdateUserActivity
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 8.0 and later.
-
didAcceptCloudKitShare
public void didAcceptCloudKitShare(UIApplication application, CKShareMetadata cloudKitShareMetadata)
- Specified by:
didAcceptCloudKitShare
in interfaceUIApplicationDelegate
- Since:
- Available in iOS 10.0 and later.
-
-