T
- The App Component behind this exclusive App Component.public interface ExclusiveAppComponent<T>
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.
Modifier and Type | Method and Description |
---|---|
void |
detachFromFlutterEngine()
Called when another App Component is about to become attached to the
FlutterEngine this App Component is currently attached to. |
T |
getAppComponent()
Retrieve the App Component behind this exclusive App Component.
|
void detachFromFlutterEngine()
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.
@NonNull T getAppComponent()