localDevice Object Reference

Table of contents


Introduction

The localDevice object provides properties about the platform that the app is executing on.


Exported identifiers

localDevice

Syntax

import {localDevice} from 'common/mvcs/export.js';

localDevice properties

isAndroid

True if the app is running on an Android device.

Value

A Boolean.


isIE

True if the app is running in an Internet Explorer browser.

Value

A Boolean.


isLocalhost

True if the app is running in a browser from local (localhost) server.

Value

A Boolean.


isNative

True if the app is running in Cordova as a native iOS or Android app.

Value

A Boolean.


isTouch

True if the app is running on a mobile device with a touch interface instead of a mouse or trackpad.

Value

A Boolean.


isWebApp

True if the app is running in a browser.

Value

A Boolean.


missing

A string containing important missing features in the app environment. The features are separated by '+'. The possible features are:

Value

A string.


platform

A string indicating the current platform. The possible strings are:

Value

A string.