Interface FlutterEngineProvider

    • Method Detail

      • provideFlutterEngine

        @Nullable
        FlutterEngine provideFlutterEngine​(@NonNull
                                           Context context)
        Returns the FlutterEngine that should be used by a child FlutterFragment.

        This method may return a new FlutterEngine, an existing, cached FlutterEngine, or null to express that the FlutterEngineProvider would like the FlutterFragment to provide its own FlutterEngine instance.

        Parameters:
        context - The current context. e.g. An activity.
        Returns:
        The Flutter engine.