UNPKG

@brahmaesolutions/native

Version:
35 lines (28 loc) 884 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var core = require('@capacitor/core'); const Contacts = core.registerPlugin('Custom', { web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ContactsPluginWeb()), }); class ContactsPluginWeb extends core.WebPlugin { async echo(options) { console.log('ECHO', options); return options; } async getContacts(filter) { console.log('filter: ', filter); return { results: [{ firstName: 'Dummy', lastName: 'Entry', telephone: '123456' }] }; } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, ContactsPluginWeb: ContactsPluginWeb }); exports.Contacts = Contacts; //# sourceMappingURL=plugin.cjs.js.map