| Flutter macOS Embedder |

Instance Methods | List of all members
<FlutterAppLifecycleDelegate> Protocol Reference

`#import <FlutterAppLifecycleDelegate.h>`

Inheritance diagram for <FlutterAppLifecycleDelegate>:

## Instance Methods
(void) | - handleWillFinishLaunching:
(void) | - handleDidFinishLaunching:
(void) | - handleWillBecomeActive:
(void) | - handleDidBecomeActive:
(void) | - handleWillResignActive:
(void) | - handleDidResignActive:
(void) | - handleWillHide:
(void) | - handleDidHide:
(void) | - handleWillUnhide:
(void) | - handleDidUnhide:
(void) | - handleDidChangeScreenParameters:
(void) | - handleDidChangeOcclusionState:
(BOOL) | - handleOpenURLs:
(void) | - handleWillTerminate:

## Detailed Description

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

Definition at line 21 of file FlutterAppLifecycleDelegate.h.

## Method Documentation

## ◆ handleDidBecomeActive:

- (void) handleDidBecomeActive: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidBecomeActive notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidChangeOcclusionState:

- (void) handleDidChangeOcclusionState: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidUnhide notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidChangeScreenParameters:

- (void) handleDidChangeScreenParameters: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidUnhide notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidFinishLaunching:

- (void) handleDidFinishLaunching: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidFinishLaunching notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidHide:

- (void) handleDidHide: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidHide notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidResignActive:

- (void) handleDidResignActive: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillResignActive notification.

Referenced by flutter::testing::TEST().

## ◆ handleDidUnhide:

- (void) handleDidUnhide: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationDidUnhide notification.

Referenced by flutter::testing::TEST().

## ◆ handleOpenURLs:

- (BOOL) handleOpenURLs: |  | (NSArray< NSURL * > *) | urls |
| optional

Called when the |FlutterAppDelegate| gets the application:openURLs: callback.

Implementers should return YES if they handle the URLs, otherwise NO. Delegates will be called in order of registration, and once a delegate returns YES, no further delegates will reiceve this callback.

## ◆ handleWillBecomeActive:

- (void) handleWillBecomeActive: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillBecomeActive notification.

Referenced by flutter::testing::TEST().

## ◆ handleWillFinishLaunching:

- (void) handleWillFinishLaunching: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillFinishLaunching notification.

Referenced by flutter::testing::TEST().

## ◆ handleWillHide:

- (void) handleWillHide: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillHide notification.

Referenced by flutter::testing::TEST().

## ◆ handleWillResignActive:

- (void) handleWillResignActive: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillResignActive notification.

Referenced by flutter::testing::TEST().

## ◆ handleWillTerminate:

- (void) handleWillTerminate: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillTerminate notification.

Applications should not rely on always receiving all possible notifications.

For example, if the application is killed with a task manager, a kill signal, the user pulls the power from the device, or there is a rapid unscheduled disassembly of the device, no notification will be sent before the application is suddenly terminated, and this notification may be skipped.

Referenced by flutter::testing::TEST().

## ◆ handleWillUnhide:

- (void) handleWillUnhide: |  | (NSNotification *) | notification |
| optional

Called when the |FlutterAppDelegate| gets the applicationWillUnhide notification.

Referenced by flutter::testing::TEST().

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

- shell/platform/darwin/macos/framework/Headers/FlutterAppLifecycleDelegate.h