UNPKG

capacitor-notificare-assets

Version:
42 lines (33 loc) 1.4 kB
var capacitorNotificareAssetsPlugin = (function (exports, core) { 'use strict'; const NativePlugin = core.registerPlugin('NotificareAssetsPlugin', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NotificareAssetsPluginWeb()), }); class NotificareAssets { /** * Fetches a list of {@link NotificareAsset} for a specified group. * * @param {string} group - The name of the group whose assets are to be fetched. * @returns {Promise<NotificareAsset[]>} - A promise that resolves to a list of * {@link NotificareAsset} belonging to the specified group. */ static async fetch(group) { const { result } = await NativePlugin.fetch({ group }); return result; } } class NotificareAssetsPluginWeb extends core.WebPlugin { // eslint-disable-next-line @typescript-eslint/no-unused-vars async fetch(_options) { throw this.unimplemented('Not implemented on web.'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, NotificareAssetsPluginWeb: NotificareAssetsPluginWeb }); exports.NotificareAssets = NotificareAssets; Object.defineProperty(exports, '__esModule', { value: true }); return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map