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

  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 Details

  - ### 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.