MCPcopy Create free account
hub / github.com/melonjs/melonJS / constructor

Method constructor

packages/capacitor-plugin/src/plugin.ts:29–37  ·  view source on GitHub ↗

* @param options - forwarded to the underlying `connectCapacitor` * wiring (lifecycle, back-button, audio, default-action hook).

(options: ConnectCapacitorOptions = {})

Source from the content-addressed store, hash-verified

27 * wiring (lifecycle, back-button, audio, default-action hook).
28 */
29 constructor(options: ConnectCapacitorOptions = {}) {
30 super();
31 // Compatibility floor: read straight from `peerDependencies.melonjs`
32 // so the version lives in one place (package.json). The engine's
33 // `checkVersion` regex picks the digits out of the range string,
34 // so the leading `>=` / `^` / `~` is harmless.
35 this.version = packageJson.peerDependencies.melonjs;
36 this.teardown = connectCapacitor(options);
37 }
38}

Callers

nothing calls this directly

Calls 1

connectCapacitorFunction · 0.90

Tested by

no test coverage detected