FlutterPluginAppLifeCycleDelegate

@interface FlutterPluginAppLifeCycleDelegate : NSObject

Propagates UIAppDelegate callbacks to registered plugins.

  • Registers delegate to receive life cycle callbacks via this FlutterPluginAppLifecycleDelegate as long as it is alive.

    delegate will only referenced weakly.

    Declaration

    Objective-C

    - (void)addDelegate:(nonnull NSObject<FlutterPlugin> *)delegate;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

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

    Return Value

    NO if any plugin vetoes application launch.

  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

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

    Return Value

    NO if any plugin vetoes application launch.

  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationDidBecomeActive:(nonnull UIApplication *)application;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillResignActive:(nonnull UIApplication *)application;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationDidEnterBackground:(nonnull UIApplication *)application;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillEnterForeground:(nonnull UIApplication *)application;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)applicationWillTerminate:(nonnull UIApplication *)application;
  • Undocumented

    Declaration

    Objective-C

    - (void)application:(UIApplication*)application
        didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didRegisterForRemoteNotificationsWithDeviceToken:
            (nonnull NSData *)deviceToken;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
              fetchCompletionHandler:
                  (nonnull void (^)(UIBackgroundFetchResult))completionHandler;
  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        didReceiveLocalNotification:(nonnull UILocalNotification *)notification;
  • Calls all plugins registered for UNUserNotificationCenterDelegate callbacks.

    Declaration

    Objective-C

    - (void)userNotificationCenter:(nonnull UNUserNotificationCenter *)center
           willPresentNotification:(nonnull UNNotification *)notification
             withCompletionHandler:
                 (nonnull void (^)(UNNotificationPresentationOptions))
                     completionHandler;
  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    Declaration

    Objective-C

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

    Return Value

    YES if any plugin handles the request.

  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    Declaration

    Objective-C

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

    Return Value

    YES if any plugin handles the request.

  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    Declaration

    Objective-C

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

    Return Value

    YES if any plugin handles the request.

  • Calls all plugins registered for UIApplicationDelegate callbacks.

    Declaration

    Objective-C

    - (void)application:(nonnull UIApplication *)application
        performActionForShortcutItem:
            (nonnull UIApplicationShortcutItem *)shortcutItem
                   completionHandler:(nonnull void (^)(BOOL))completionHandler;
  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    Declaration

    Objective-C

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

    Return Value

    YES if any plugin handles the request.

  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    @returns YES if any plugin handles the request.

    Declaration

    Objective-C

    - (BOOL)application:(nonnull UIApplication *)application
        performFetchWithCompletionHandler:
            (nonnull void (^)(UIBackgroundFetchResult))completionHandler;
  • Calls all plugins registered for UIApplicationDelegate callbacks in order of registration until some plugin handles the request.

    Declaration

    Objective-C

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

    Return Value

    YES if any plugin handles the request.