capacitor-detect-mobile-services
Version:
Detect android HMS or GMS service, ios or web.
33 lines (25 loc) • 958 B
JavaScript
var capacitorDetectMobileServices = (function (exports, core) {
'use strict';
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;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, capacitorExports);
//# sourceMappingURL=plugin.js.map