mobicontrol.featureControl.camera

This namespace provides access to the camera feature control functionality.
Since:
  • Version 1.0 (API level 1)

Methods

static allow() → {boolean}

Allow the feature.

A feature is allowed if it is not controlled by the agent. For example, if the camera feature is allowed, the device camera can be used, unless device doesn't have a camera or the camera is disabled by EMM software other than the agent.

Returns:
boolean - true if the feature was successfully allowed, false otherwise.
Since:
  • Version 1.0 (API level 1)

static disable() → {boolean}

Disable the feature.

A feature is disabled if it cannot be used. For example, if the camera feature is disabled, the device camera cannot be used.

Returns:
boolean - true if the feature was successfully disabled, false otherwise.
Since:
  • Version 1.0 (API level 1)

static getSetting() → {mobicontrol.featureControl.Setting}

Return the current setting of the feature.
Returns:
mobicontrol.featureControl.Setting - The feature control setting - either ALLOWED or DISABLED.
Since:
  • Version 1.0 (API level 1)

static isAllowed() → {boolean}

Detect if the feature is allowed.
Returns:
boolean - true if the feature is allowed, false otherwise.
Since:
  • Version 1.0 (API level 1)

static isDisabled() → {boolean}

Detect if the feature is disabled.
Returns:
boolean - true if the feature is disabled, false otherwise.
Since:
  • Version 1.0 (API level 1)