@brahmaesolutions/native
Version:
Android native plugin for Ionic (Capacitor)
38 lines (30 loc) • 1.04 kB
JavaScript
var capacitorCustom = (function (exports, core) {
'use strict';
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;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, capacitorExports);
//# sourceMappingURL=plugin.js.map