requestPermissions(onSuccess, onError, permissions);
Request for the permissions required by your app.
Android example: android.permission.CAMERA
The return value is always of type Result Struct.
The fields of the struct are filled dependend on the method call.
FunctionName: “onPermissionGranted” or “onPermissionDenied”
error: a value of 0 indicates that the method call has succeeded.
intValue: index of the requested Permission. this value is decremented on each invokation of the callback function. A value of 1 indicates the last turn. Use this value to only run a method once.
boolValue: true = the user has accepted.
false = the user has denied access.
the remaining fields of the Result Struct are unused.