Package io.flutter.embedding.engine

## Interface FlutterEngine.EngineLifecycleListener

- Enclosing class:
    FlutterEngine

      public static interface FlutterEngine.EngineLifecycleListener

  Lifecycle callbacks for Flutter engine lifecycle events.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onEngineWillDestroy()` | Lifecycle callback invoked before the Flutter engine is destroyed.
    `void` | `onPreEngineRestart()` | Lifecycle callback invoked before a hot restart of the Flutter engine.

- - ### Method Detail

    - #### onPreEngineRestart

          void onPreEngineRestart()

      Lifecycle callback invoked before a hot restart of the Flutter engine.

    - #### onEngineWillDestroy

          void onEngineWillDestroy()

      Lifecycle callback invoked before the Flutter engine is destroyed.

      For the duration of the call, the Flutter engine is still valid.