public interface UIApplicationDelegate
Modifier and Type | Method and Description |
---|---|
default void |
didBecomeActive(UIApplication app)
It is used in order to handle the fact that the application has become
active.
|
default void |
didChangeStatusBarFrame(UIApplication app,
CGRect oldStatusBarFrame)
Used in order to handle the fact that the frame of the status bar has
changed.
|
default void |
didChangeStatusBarOrientation(UIApplication app,
int oldStatusBarOrientation)
It is used in order to handle the fact that the orientation of the status
bar has changed.
|
default void |
didEnterBackground(UIApplication app)
It is used in order to handle the fact that the application is in the
background.
|
default void |
didFailToRegisterForRemoteNotificationsWithError(UIApplication app,
NSError error)
Deprecated.
|
default boolean |
didFinishLaunchingWithOptions(UIApplication app,
Map<String,Object> launchOptions)
It is used in order to handle the fact that the application finishes
launching and is about to run.
|
default void |
didReceiveLocalNotification(UIApplication app,
UILocalNotification notification)
It is used in order to handle a local notification.
|
default void |
didReceiveMemoryWarning(UIApplication app)
It is used in order to handle a memory warning from the system.
|
default void |
didReceiveRemoteNotification(UIApplication app,
Map<String,Object> userinfo)
It is used in order to handle a remote notification that arrived.
|
default void |
didReceiveRemoteNotificationFetchCompletionHandler(UIApplication app,
Map<String,Object> userinfo,
org.robovm.objc.block.VoidBlock1<Integer> completionHandler) |
default void |
didRegisterForRemoteNotificationsWithDeviceToken(UIApplication app,
NSData deviceToken)
It is used after a successful registration to the notification service.
|
default void |
didRegisterUserNotificationSettings(UIApplication application,
UIUserNotificationSettings notificationSettings)
Deprecated.
|
default void |
handleActionWithIdentifierForLocalNotification(UIApplication application,
String identifier,
UILocalNotification notification,
Runnable completionHandler) |
default void |
handleActionWithIdentifierForRemoteNotification(UIApplication application,
String identifier,
Map userInfo,
Runnable completionHandler) |
default boolean |
openURL(UIApplication app,
NSURL url,
String sourceApplication,
Object annotation)
It is used in order to open the specified URL.
|
default void |
protectedDataDidBecomeAvailable(UIApplication app)
It is used in order to handle the fact that the protected files become
available.
|
default void |
protectedDataWillBecomeUnavailable(UIApplication app)
It is used in order to handle the fact that protected files become
unavailable.
|
default void |
setWindow(UIWindow window)
The window to use when presenting a storyboard.
|
default void |
significantTimeChange(UIApplication app)
It is used in order to handle a significant change in the time.
|
default void |
willChangeStatusBarFrame(UIApplication app,
CGRect oldStatusBarFrame)
It is used in order to handle the fact that the frame of the status bar
is about to change.
|
default void |
willChangeStatusBarOrientation(UIApplication app,
int oldStatusBarOrientation,
double duration)
It is used in order to handle the fact that the orientation of the status
bar is about to change.
|
default void |
willEnterForeground(UIApplication app)
It is used in order to handle the fact that the application will enter
the foreground.
|
default void |
willResignActive(UIApplication app)
It is used in order to handle the fact that the application will become
inactive.
|
default void |
willTerminate(UIApplication app)
It is used in order to handle the imminent termination of the
application.
|
default UIWindow |
window()
Constructs and returns the main application window as provided by the delegate.
|
default UIWindow window()
default void setWindow(UIWindow window)
window
- The window to use when presenting a storyboard.default boolean didFinishLaunchingWithOptions(UIApplication app, Map<String,Object> launchOptions)
app
- The singleton application object.launchOptions
- Details of launching in case the application was not
launched by the userUIApplicationLaunchOptionsKey
default boolean openURL(UIApplication app, NSURL url, String sourceApplication, Object annotation)
app
- The singleton application object.url
- The URL to open.sourceApplication
- The id of the application that is requesting
from this app to open the URL.annotation
- Properties supplied by the source application.default void didBecomeActive(UIApplication app)
app
- The singleton application object.default void willResignActive(UIApplication app)
app
- The singleton application object.default void didEnterBackground(UIApplication app)
app
- The singleton application object.default void willEnterForeground(UIApplication app)
app
- The singleton application object.default void willTerminate(UIApplication app)
app
- The singleton application object.default void didReceiveRemoteNotification(UIApplication app, Map<String,Object> userinfo)
app
- The singleton application object.userinfo
- Information related to the remote notification.default void didReceiveRemoteNotificationFetchCompletionHandler(UIApplication app, Map<String,Object> userinfo, org.robovm.objc.block.VoidBlock1<Integer> completionHandler)
default void didRegisterForRemoteNotificationsWithDeviceToken(UIApplication app, NSData deviceToken)
app
- The application object that initiated the registration
process.deviceToken
- A token that identifies the device to APNs.@Deprecated default void didFailToRegisterForRemoteNotificationsWithError(UIApplication app, NSError error)
app
- The application object that initiated registration process.error
- The error that occurred.default void didReceiveLocalNotification(UIApplication app, UILocalNotification notification)
app
- The application that received the local notification.notification
- The local notification.default void didReceiveMemoryWarning(UIApplication app)
app
- The singleton application object.default void significantTimeChange(UIApplication app)
app
- The singleton application object.default void willChangeStatusBarOrientation(UIApplication app, int oldStatusBarOrientation, double duration)
app
- The singleton application object.oldStatusBarOrientation
- The new orientation of the status bar.duration
- The duration of the animation in seconds.default void didChangeStatusBarOrientation(UIApplication app, int oldStatusBarOrientation)
app
- The singleton application object.oldStatusBarOrientation
- The orientation of the status bar before
the change.default void willChangeStatusBarFrame(UIApplication app, CGRect oldStatusBarFrame)
app
- The singleton application object.oldStatusBarFrame
- The frame of the status bar before the change.default void didChangeStatusBarFrame(UIApplication app, CGRect oldStatusBarFrame)
app
- The singleton application object.oldStatusBarFrame
- The frame of the status bar before the change.default void protectedDataWillBecomeUnavailable(UIApplication app)
app
- The singleton application object.default void protectedDataDidBecomeAvailable(UIApplication app)
app
- The singleton application object.@Deprecated default void didRegisterUserNotificationSettings(UIApplication application, UIUserNotificationSettings notificationSettings)
default void handleActionWithIdentifierForRemoteNotification(UIApplication application, String identifier, Map userInfo, Runnable completionHandler)
default void handleActionWithIdentifierForLocalNotification(UIApplication application, String identifier, UILocalNotification notification, Runnable completionHandler)
Copyright © 2020. All rights reserved.