Building Mobile Enterprise Applications : Using webMethods Mobile Designer : 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 © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback