ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Permission functions
  • Properties specific to the description of Permission variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Permission type represents a permission requested by the application (and therefore declared in the manifest). The characteristics of this permission can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Checks if the CAMERA permission has been granted to the application
perm is Permission = PermissionList("android.permission.CAMERA")
IF NOT perm.Granted
// Process if the permission has not been granted
END
Remarks

Properties specific to the description of Permission variables

The following properties can be used to handle permissions:
Property nameType usedEffect
DescriptionCharacter stringDescription of the permission.
This property is read-only.
GrantedBoolean
  • True if permission has been granted to the application (at the time the variable is created),
  • False otherwise.
This property is read-only.
NameCharacter stringName of the permission. Generally, the name has the following format "android.permission.<NAME>". The list of permissions of the Android SDK can be found at: https://developer.android.com/reference/android/Manifest.permission.
This property is read-only.
  • To get the details of a given permission, use PermissionList and specify the name of the permission as a parameter.
  • To request a permission, use PermissionRequest.
  • Use VariableReset to reset the contents of a variable of type Permission.
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment

Last update: 08/23/2022

Send a report | Local help