UNPKG

@capgo/capacitor-sim

Version:

Capacitor plugin to get information from device's sim cards

34 lines (27 loc) 865 B
var capacitorSim = (function (exports, core) { 'use strict'; const Sim = core.registerPlugin('Sim', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.SimWeb()), }); class SimWeb extends core.WebPlugin { async getSimCards() { throw this.unimplemented('Sim.getSimCards is not implemented on web.'); } async checkPermissions() { return { readSimCard: 'denied' }; } async requestPermissions() { return this.checkPermissions(); } async getPluginVersion() { return { version: 'web' }; } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, SimWeb: SimWeb }); exports.Sim = Sim; return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map