Interface ExclusiveAppComponent<T>

  • Type Parameters:
    T - The App Component behind this exclusive App Component.

    public interface ExclusiveAppComponent<T>
    An Android App Component exclusively attached to a FlutterEngine.

    An exclusive App Component's detachFromFlutterEngine() is invoked when another App Component is becoming attached to the FlutterEngine.

    The term "App Component" refer to the 4 component types: Activity, Service, Broadcast Receiver, and Content Provider, as defined in https://developer.android.com/guide/components/fundamentals.

    • Method Detail

      • detachFromFlutterEngine

        void detachFromFlutterEngine()
        Called when another App Component is about to become attached to the FlutterEngine this App Component is currently attached to.

        This App Component's connections to the FlutterEngine are still valid at the moment of this call.

      • getAppComponent

        @NonNull
        T getAppComponent()
        Retrieve the App Component behind this exclusive App Component.
        Returns:
        The app component.