localDevice Object ReferenceThe localDevice object provides properties about the platform that the app is executing on.
localDeviceimport {localDevice} from 'common/mvcs/export.js';
localDevice propertiesisAndroidTrue if the app is running on an Android device.
A Boolean.
isIETrue if the app is running in an Internet Explorer browser.
A Boolean.
isLocalhostTrue if the app is running in a browser from local (localhost) server.
A Boolean.
isNativeTrue if the app is running in Cordova as a native iOS or Android app.
A Boolean.
isTouchTrue if the app is running on a mobile device with a touch interface instead of a mouse or trackpad.
A Boolean.
isWebAppTrue if the app is running in a browser.
A Boolean.
missingA string containing important missing features in the app environment. The features are separated by '+'. The possible features are:
es6es6 indicates that some important JavaScipt ES6 (ES2015) features are missing. ES6 is a required capability.fetchfetch indicates that the fatch function is missing. fetch is a required capability.speechRecspeechRec indicates that the speech recognition is missing.speechSynspeechSyn indicates that the speech synthesis is missing.svcWkrsvcWkr indicates that the Service Workers are missing.A string.
platformA string indicating the current platform. The possible strings are:
AndroidBlackberrydesktopiPadiPhoneSymbianWinPhoneA string.