The 'Camera Policy API' helps a developer to enable or disable camera from within an app.
This method sets camera policy defined by a developer to an app. This will overwrite camera policy if that is already set from the server.
JavaScript:com.kony.iemm.app.setCameraPolicy(status);
| Variable Name | status |
| Presence | Mandatory |
| Type | Boolean |
| Values | True - Camera should open False - Camera should not open |
Int
| Code | Description |
|---|---|
| 200 | SUCCESS |
| 500 | FAILURE |
| 400 | FEATURE_NOT_SUPPORTED |
| 600 |
APP_CONTEXT_NULL_ERRORCODE (android) |
| 700 | PACKAGE_NULL_ERRORCODE(android) |
This method clears camera policy set by a developer to app. Once the policy is cleared, the server defined camera policy will be applied to an app if any.
JavaScript:com.kony.iemm.app.clearCameraPolicy();
Int
| Code | Description |
|---|---|
| 200 | SUCCESS |
| 500 | FAILURE |
| 400 | FEATURE_NOT_SUPPORTED |
| 600 |
APP_CONTEXT_NULL_ERRORCODE (android) |
| 700 | PACKAGE_NULL_ERRORCODE(android) |
| Copyright © 2017 Kony, Inc. All rights reserved. |