ws1-client-sdk/com.airwatch.sdk.profile/RestrictionPolicy
RestrictionPolicy¶
open class RestrictionPolicy
Provides details regarding Restriction policy set in console. This includes restriction on usage of bluetooth, camera, copy paste, and offline access features
Policy can be fetched from anchor application using getRestrictionPolicy. Example usage
//Initializes Workspace ONE SDK and connects with anchor application if it is available.
SDKManager sdkManager = SDKManager.init(context);
//Checks enrollment status
if(sdkManager.isEnrolled()){
//Fetch policy from enrolled anchor application.
RestrictionPolicy profile = sdkManager.getRestrictionPolicy();
}
Functions¶
| Name | Summary |
|---|---|
| allowBluetooth | open fun allowBluetooth(): Boolean Retrieve application restriction information for use of Bluetooth. |
| allowCamera | open fun allowCamera(): Boolean Retrieve application restriction information for use of the camera. |
| allowOfflineMode | open fun allowOfflineMode(): Boolean Determine if the application can be used when access to network is not available. |
| preventCopyAndCutActions | open fun preventCopyAndCutActions(): Boolean Determine if the application is allowed to use clipboard copy and cut actions. |