Also, note that the plugin should still contain the static
registerWith() method to remain compatible with apps that
don’t use the v2 Android embedding.
(See Upgrading pre 1.12 Android projects for details.)
The easiest thing to do (if possible) is move the logic from
registerWith() into a private method that both
registerWith() and onAttachedToEngine() can call.
Either registerWith() or onAttachedToEngine() will be called,
not both.

In addition, you should document all non-overridden public members
within the plugin. In an add-to-app scenario,
these classes are accessible to a developer and
require documentation.

(Optional) If your plugin needs an Activity reference,
also implement the ActivityAware interface.

(Optional) If your plugin is expected to be held in a
background Service at any point in time, implement the
ServiceAware interface.