FlutterAppLifeCycleProvider
Objective-C
@protocol FlutterAppLifeCycleProvider <UNUserNotificationCenterDelegate>
Swift
protocol FlutterAppLifeCycleProvider : UNUserNotificationCenterDelegate
Implement this in the UIAppDelegate of your app to enable Flutter plugins to register
themselves to the application life cycle events.
For plugins to receive events from UNUserNotificationCenter, register this as the
UNUserNotificationCenterDelegate.
-
Called when registering a new
FlutterApplicaitonLifeCycleDelegate.See also:
-[FlutterAppDelegate addApplicationLifeCycleDelegate:]Declaration
Objective-C
- (void)addApplicationLifeCycleDelegate: (nonnull NSObject<FlutterApplicationLifeCycleDelegate> *)delegate;Swift
func add(_ delegate: FlutterApplicationLifeCycleDelegate)
View on GitHub
Install in Dash
FlutterAppLifeCycleProvider Protocol Reference