capacitor-notificare-assets
Version:
Notificare Assets Capacitor plugin.
39 lines (31 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var core = require('@capacitor/core');
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;
//# sourceMappingURL=plugin.cjs.js.map