Interface FlutterEngine.EngineLifecycleListener

  • Enclosing class:
    FlutterEngine

    public static interface FlutterEngine.EngineLifecycleListener
    Lifecycle callbacks for Flutter engine lifecycle events.
    • 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.