mobicontrol

This is an umbrella namespace for all JavaScript custom APIs.
Since:
  • Version 1.0 (API level 1)

Classes

Error

Namespaces

agent

apn

app

audio

battery

cellular

cert

device

featureControl

intl

io

json

lockdown

log

mdm

memory

message

network

os

packages

sharedDevice

storage

wifi

Members

static, readonly apiLevel :number

JavaScript API level.

For example: 1 for the first JavaScript API release.

Since:
  • Version 1.0 (API level 1)
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:
  • Version 1.0 (API level 1)