ActivityPluginBinding

activityPluginBinding

// TODO: your plugin is now attached to a new Activity

// after a configuration change.

@Override

public

void

onDetachedFromActivity

()

// TODO: your plugin is no longer associated with an Activity.

// Clean up references.

To interact with an Activity, your ActivityAware plugin must
implement appropriate behavior at 4 stages. First, your plugin
is attached to an Activity. You can access that Activity and
a number of its callbacks through the provided ActivityPluginBinding.

Since Activitys can be destroyed during configuration changes,
you must cleanup any references to the given Activity in
onDetachedFromActivityForConfigChanges(),
and then re-establish those references in
onReattachedToActivityForConfigChanges().