forwarded to the underlying connectCapacitor
wiring (lifecycle, back-button, audio, default-action hook).
a reference to the app/game that registered this plugin
Detach every Capacitor listener wired by this plugin. Returns a
promise that resolves once all remove() calls have settled —
await it from tests / hot-reload paths for deterministic
cleanup, or fire-and-forget for opportunistic detachment.
define the minimum required version of melonJS this can be overridden by the plugin
melonJS plugin that bridges Capacitor's native lifecycle and hardware-back events into the engine. Register via
plugin.register(CapacitorPlugin, "capacitor", options?)— the Capacitor wiring is installed automatically on registration.The instance is then accessible at
plugin.cache.capacitor; callinstance.teardown()to detach all listeners (typically only needed for hot-reload or unit tests).