mobicontrol

This is an umbrella namespace for all JavaScript custom APIs.
Since:

Classes

AndroidError

Error

Namespaces

agent

android

apn

app

audio

battery

cellular

cert

device

featureControl

intl

io

json

location

lockdown

log

mdm

memory

message

network

os

packages

screen

sharedDevice

storage

wifi

Members

static, readonly AndroidStatusCode :object

This enumeration represents an Android error status code of mobicontrol.AndroidError.
Properties:
Name Type Description
NO_PERMISSION object The agent doesn't have required permission.
NOT_SUPPORTED object The functionality is not supported on this device configuration.
UNKNOWN object The reason of the error is unknown.
ILLEGAL_ARGUMENT object An argument passed into a function is invalid.
ILLEGAL_STATE object The system is in invalid state and cannot execute a function.
Since:

static, readonly apiLevel :number

JavaScript API level.

For example: 1 for the first JavaScript API release.

Since:
Example
if (mobicontrol.apiLevel >= 2) {
    // ...
    // A script that relies on JavaScript APIs marked "Since: Version 1.1 (API level 2)"
    // ...
} else {
    mobicontrol.log.warn("Script is not supported on agent with API level " + mobicontrol.apiLevel);
}

static, readonly apiVersion :string

JavaScript API version.

For example: "1.0".

Since: