FlutterApplicationLifeCycleDelegate

@protocol FlutterApplicationLifeCycleDelegate <UNUserNotificationCenterDelegate>

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

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        didFinishLaunchingWithOptions:(nonnull NSDictionary *)launchOptions;

    Return Value

    NO if this vetoes application launch.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        willFinishLaunchingWithOptions:(nonnull NSDictionary *)launchOptions;

    Return Value

    NO if this vetoes application launch.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationDidBecomeActive:(nonnull UIApplication *)application;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillResignActive:(nonnull UIApplication *)application;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationDidEnterBackground:(nonnull UIApplication *)application;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillEnterForeground:(nonnull UIApplication *)application;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillTerminate:(nonnull UIApplication *)application;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didRegisterUserNotificationSettings:
            (nonnull UIUserNotificationSettings *)notificationSettings;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didRegisterForRemoteNotificationsWithDeviceToken:
            (nonnull NSData *)deviceToken;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didFailToRegisterForRemoteNotificationsWithError:(nonnull NSError *)error;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
              fetchCompletionHandler:
                  (nonnull void (^)(UIBackgroundFetchResult))completionHandler;

    Return Value

    YES if this handles the request.

  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didReceiveLocalNotification:(nonnull UILocalNotification *)notification;
  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

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

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
          handleOpenURL:(nonnull NSURL *)url;

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
                  openURL:(nonnull NSURL *)url
        sourceApplication:(nonnull NSString *)sourceApplication
               annotation:(nonnull id)annotation;

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        performActionForShortcutItem:
            (nonnull UIApplicationShortcutItem *)shortcutItem
                   completionHandler:(nonnull void (^)(BOOL))completionHandler;

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

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

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        performFetchWithCompletionHandler:
            (nonnull void (^)(UIBackgroundFetchResult))completionHandler;

    Return Value

    YES if this handles the request.

  • Called if this has been registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        continueUserActivity:(nonnull NSUserActivity *)userActivity
          restorationHandler:
              (nonnull void (^)(NSArray *_Nonnull))restorationHandler;

    Return Value

    YES if this handles the request.