ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Permission functions
  • Properties specific to Permission variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Permission type represents a permission requested by the application (and therefore declared in the manifest). You can define and change the characteristics of this permission using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Vérifie si la permission CAMERA a été accordée à l'application
perm is Permission = PermissionList("android.permission.CAMERA")
IF NOT perm.Accordé
	// Traitement si la permission n'a pas été accordée
END
Remarks

Properties specific to 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 Android SDK permissions list is available at the following address: 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.
  • To reset the contents of a variable of type Permissionuse function VariableReset.
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help