mobicontrol.os

This namespace provides access to Android OS properties.
Since:
  • Version 1.0 (API level 1)

Members

static, readonly apiLevel :number

Android API level, for example "26" for Oreo.
Since:
  • Version 1.0 (API level 1)
Example
// Log a message if running on devices with Oreo OS or higher
if (mobicontrol.os.apiLevel >= 26) {
    mobicontrol.log.info("Running on Oreo or higher");
}

static, readonly version :string

Android version name, for example "8.0.0" for Oreo.
Since:
  • Version 1.0 (API level 1)