Back to Flutter Boost

handleAppLifecycleStateChanged method

doc/api/boost_flutter_binding/BoostFlutterBinding/handleAppLifecycleStateChanged.html

5.0.2956 B
Original Source

handleAppLifecycleStateChanged method

  1. @override

voidhandleAppLifecycleStateChanged(

  1. AppLifecycleState state

) override

Called when the application lifecycle state changes.

Notifies all the observers using WidgetsBindingObserver.didChangeAppLifecycleState.

This method exposes notifications from SystemChannels.lifecycle.

Implementation

@override
void handleAppLifecycleStateChanged(AppLifecycleState state) {
  if (_appLifecycleStateLocked) {
    return;
  }
  Logger.log('boost_flutter_binding: '
      'handleAppLifecycleStateChanged ${state.toString()}');
  super.handleAppLifecycleStateChanged(state);
}