PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV Mobile 26 feature!
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
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
GrantedBoolean
  • True if permission has been granted to the application (at the time the variable is created),
  • False otherwise.
This property is read-only.
DescriptionCharacter stringDescription of the permission.
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.
  • To reset the contents of a Permission variable, use VariableReset.
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment