// Returns boolean signifying if Watermark is allowed or not. public bool allowWatermark() { bool watermarkEnabled = false; if (sdkProfile != null && sdkProfile.RestrictionsPayload != null) { AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; watermarkEnabled = (restrictionsPayload.EnableWatermark); } return(watermarkEnabled); }
// Returns boolean signifying if camera access is allowed or not. Can be configured under DLP Settings in Settings. public bool allowCamera() { bool cameraAccess = false; if (sdkProfile != null && sdkProfile.RestrictionsPayload != null) { AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; cameraAccess = (restrictionsPayload.EnableCameraAccess); } return(cameraAccess); }
// Returns a list of allowed application list for document opening. Can be configured under DLP Settings in Settings. public NSArray allowedApplicationsList() { NSArray allowedApps = null; if (sdkProfile != null && sdkProfile.RestrictionsPayload != null) { AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; allowedApps = restrictionsPayload.AllowedApplications; } return(allowedApps); }
// Returns boolean signifying if document opening is allowed in specific apps or not. If checked then list of allowed apps can be obtained from allowedApplicationsList() public bool restrictDocumentToApps() { bool restrictApps = false; if (sdkProfile != null && sdkProfile.RestrictionsPayload != null) { AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; restrictApps = restrictionsPayload.RestrictDocumentToApps; } return(restrictApps); }
// Returns boolean signifying if copy paste operation is allowed or not. Can be configured under DLP Settings in Settings public bool allowCopyPaste() { bool copyPastePermission = false; if (sdkProfile != null && sdkProfile.RestrictionsPayload != null) { AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; copyPastePermission = !(restrictionsPayload.PreventCopyAndCut); } return(copyPastePermission); }
public bool DLPEnabled() { bool DLPPersmission = false; AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload; if (sdkProfile != null && restrictionsPayload != null) { DLPPersmission = restrictionsPayload.EnableDataLossPrevention; } return(DLPPersmission); }