webMethods Mobile Suite  | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Permissions API | Determining Existing Permissions
 
Determining Existing Permissions
To test if an application already has permission for a resource, the method hasPermissionFor() can be used:
if(PermissionsManager.hasPermissionFor(PermissionsManager.PERMISSION_CAMERA))
{
//do something with the camera
...
}

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.