Lifecycle

lifecycle

);

An ExclusiveAppComponent<Activity> interface
is now expected instead of an Activity.
The ExclusiveAppComponent<Activity> provides a callback
in case your exclusive activity is being replaced by
another activity attaching itself to the FlutterEngine.

The

void

detachFromActivity

();

API remains unchanged and you’re still expected
to call it when your custom
activity is being destroyed naturally.

Migration guide

If you have your own activity holding a
FlutterView, replace calls to:

void

attachToActivity

@NonNull

Activity

activity

@NonNull

Lifecycle

lifecycle

);

with calls to:

void

attachToActivity