Check Permission Function
This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0
The Check Permission function verifies whether a specific device permission (e.g., Camera, Location, Notifications) is granted. It returns a Boolean value (True if granted, False if denied), allowing applications to determine whether to proceed with an action or request permission.
Common Use Cases
- Camera Permission for Video KYC
- A user needs to complete video KYC, requiring camera access. The app checks permission status and prompts the user if denied.
- Location Permission for Navigation
- A navigation feature requires location access. If denied, the user is redirected to settings to enable it.
When to Use
Use the Check Permission function within the Open Device Settings Task to verify if a required permission (e.g., Camera, Location, Notifications) is granted. If denied, the task can redirect users to the appropriate settings page.
Functions | Purpose |
CHECKPERMISSIONCAMERA | – Checks if camera access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONCONTACTS | – Checks if contacts access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONLOCATION | – Checks if location access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONMUSICANDAUDIO | – Checks if music and audio access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONPHOTOS | – Checks if photo access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONVIDEO | – Checks if video access is granted. – Returns True if granted, otherwise False. |
CHECKPERMISSIONNOTIFICATIONS | – Checks if notification access is granted. – Returns True if granted, otherwise False. |
Was this article helpful?
YesNo