@capawesome/capacitor-background-task
Version:
Capacitor plugin for running background tasks.
25 lines (19 loc) • 645 B
JavaScript
;
var core = require('@capacitor/core');
const BackgroundTask = core.registerPlugin('BackgroundTask', {
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BackgroundTaskWeb()),
});
class BackgroundTaskWeb extends core.WebPlugin {
beforeExit(_cb) {
throw this.unimplemented('Not implemented on web.');
}
finish(_options) {
throw this.unimplemented('Not implemented on web.');
}
}
var web = /*#__PURE__*/Object.freeze({
__proto__: null,
BackgroundTaskWeb: BackgroundTaskWeb
});
exports.BackgroundTask = BackgroundTask;
//# sourceMappingURL=plugin.cjs.js.map