index.d.ts 492 B

1234567891011121314
  1. /**
  2. * Expose CapacitorUtils.Synapse.<pluginName>
  3. *
  4. * By default it decides to use capacitor if is defined.
  5. * If you want to instead use a cordova plugin in a capacitor shell, set overrideCapacitorWithCordova to true.
  6. *
  7. * Example use:
  8. * window.CapacitorUtils.Synapse.DemoPlugin.ping(
  9. * {value: "hello"},
  10. * (val) => {console.log(val)},
  11. * (err) => {console.error(err)}
  12. * );
  13. */
  14. export declare function exposeSynapse(overrideCapacitorWithCordova?: boolean): void;