capacitor-detect-mobile-services
Version:
Detect android HMS or GMS service, ios or web.
30 lines (23 loc) • 806 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var core = require('@capacitor/core');
const DetectMobileServices = core.registerPlugin('DetectMobileServices', {
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DetectMobileServicesWeb()),
});
class DetectMobileServicesWeb extends core.WebPlugin {
async GetMediaService() {
return Promise.resolve({ value: "web" });
}
HasHMS() {
return Promise.resolve({ value: false });
}
HasGMS() {
return Promise.resolve({ value: false });
}
}
var web = /*#__PURE__*/Object.freeze({
__proto__: null,
DetectMobileServicesWeb: DetectMobileServicesWeb
});
exports.DetectMobileServices = DetectMobileServices;
//# sourceMappingURL=plugin.cjs.js.map