Flutter Engine
<FlutterApplicationLifeCycleDelegate > Protocol Reference

#import <FlutterPlugin.h>

Inheritance diagram for <FlutterApplicationLifeCycleDelegate >:

Instance Methods

(BOOL) - application:didFinishLaunchingWithOptions:
 
(BOOL) - application:willFinishLaunchingWithOptions:
 
(void) - applicationDidBecomeActive:
 
(void) - applicationWillResignActive:
 
(void) - applicationDidEnterBackground:
 
(void) - applicationWillEnterForeground:
 
(void) - applicationWillTerminate:
 
(void) - application:didRegisterUserNotificationSettings:
 
(void) - application:didRegisterForRemoteNotificationsWithDeviceToken:
 
(BOOL) - application:didReceiveRemoteNotification:fetchCompletionHandler:
 
(void) - application:didReceiveLocalNotification:
 
(BOOL) - application:openURL:options:
 
(BOOL) - application:handleOpenURL:
 
(BOOL) - application:openURL:sourceApplication:annotation:
 
(BOOL) - application:performActionForShortcutItem:completionHandler:
 
(BOOL) - application:handleEventsForBackgroundURLSession:completionHandler:
 
(BOOL) - application:performFetchWithCompletionHandler:
 
(BOOL) - application:continueUserActivity:restorationHandler:
 

Detailed Description

Protocol for listener of events from the UIApplication, typically a FlutterPlugin.

Definition at line 25 of file FlutterPlugin.h.

Method Documentation

◆ application:continueUserActivity:restorationHandler:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
continueUserActivity: (NSUserActivity *)  userActivity
restorationHandler: (void(^)(NSArray *))  restorationHandler 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:didFinishLaunchingWithOptions:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
didFinishLaunchingWithOptions: (NSDictionary *)  launchOptions 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
NO if this vetoes application launch.

◆ application:didReceiveLocalNotification:()

- (void FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
didReceiveLocalNotification: ("See - deprecation")  [UIApplicationDelegate application:didReceiveLocalNotification:]
(ios(4.0, 10.0))  API_DEPRECATED 
optional

Calls all plugins registered for UIApplicationDelegate callbacks.

◆ application:didReceiveRemoteNotification:fetchCompletionHandler:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
didReceiveRemoteNotification: (NSDictionary *)  userInfo
fetchCompletionHandler: (void(^)(UIBackgroundFetchResult result))  completionHandler 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:didRegisterForRemoteNotificationsWithDeviceToken:()

- (void FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
didRegisterForRemoteNotificationsWithDeviceToken: (NSData *)  deviceToken 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ application:didRegisterUserNotificationSettings:()

- (void FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
didRegisterUserNotificationSettings: ("See - deprecation")  [UIApplicationDelegate application:didRegisterUserNotificationSettings:]
(ios(8.0, 10.0))  API_DEPRECATED 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ application:handleEventsForBackgroundURLSession:completionHandler:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
handleEventsForBackgroundURLSession: (nonnull NSString *)  identifier
completionHandler: (nonnull void(^)(void))  completionHandler 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:handleOpenURL:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
handleOpenURL: (NSURL *)  url 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:openURL:options:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
openURL: (NSURL *)  url
options: (NSDictionary< UIApplicationOpenURLOptionsKey, id > *)  options 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:openURL:sourceApplication:annotation:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
openURL: (NSURL *)  url
sourceApplication: (NSString *)  sourceApplication
annotation: (id annotation 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:performActionForShortcutItem:completionHandler:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
performActionForShortcutItem: (UIApplicationShortcutItem *)  shortcutItem
completionHandler: (ios(9.0))  API_AVAILABLE 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:performFetchWithCompletionHandler:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
performFetchWithCompletionHandler: (void(^)(UIBackgroundFetchResult result))  completionHandler 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
YES if this handles the request.

◆ application:willFinishLaunchingWithOptions:()

- (BOOL FlutterApplicationLifeCycleDelegate) application: (UIApplication *)  application
willFinishLaunchingWithOptions: (NSDictionary *)  launchOptions 
optional

Called if this has been registered for UIApplicationDelegate callbacks.

Returns
NO if this vetoes application launch.

◆ applicationDidBecomeActive:()

- (void FlutterApplicationLifeCycleDelegate) applicationDidBecomeActive: (UIApplication *)  application
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ applicationDidEnterBackground:()

- (void FlutterApplicationLifeCycleDelegate) applicationDidEnterBackground: (UIApplication *)  application
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ applicationWillEnterForeground:()

- (void FlutterApplicationLifeCycleDelegate) applicationWillEnterForeground: (UIApplication *)  application
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ applicationWillResignActive:()

- (void FlutterApplicationLifeCycleDelegate) applicationWillResignActive: (UIApplication *)  application
optional

Called if this has been registered for UIApplicationDelegate callbacks.

◆ applicationWillTerminate:()

- (void FlutterApplicationLifeCycleDelegate) applicationWillTerminate: (UIApplication *)  application
optional

Called if this has been registered for UIApplicationDelegate callbacks.


The documentation for this protocol was generated from the following file: