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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns one or all the permissions declared by the application.
Example
//Affiche la liste des permissions de l'application 
FOR EACH ELEMENT Perm OF PermissionList()
	ListAdd(LISTE_Permission, Perm.Nom)
END
Syntax

Listing all the permissions declared by the application Hide the details

<Result> = PermissionList()
<Result>: Array of Permission variables
Array of Permission variables containing the list of permissions declared by the application.

Getting a specific permission declared by the application Hide the details

<Result> = PermissionList(<Permission>)
<Result>: Permission variable
Permission variable that corresponds to the specified permission. If the permission has not been declared by the application, a fatal error will be displayed.
<Permission>: Character string or constant
Name of the permission to request. This parameter can correspond to:
  • to a string of the form: android.permission.<NOM>. The Android SDK permissions list is available at the following address: https://developer.android.com/reference/android/Manifest.permission.
  • one of the following constants:
    permBackgroundLocationPermission to access the device's location when the application is running in the background.
    permCameraPermission to access the device camera(s).
    permFineLocationPermission to access the device's precise location.
    permLocationPermission to access the device's location.
    permManageExternalStoragePermission to manage external storage.
    permReadContactPermission to read contacts.
    permReadPhoneStatePermission to access phone information.
    permRecordAudioPermission to record audio streams.
    permSendSMSPermission to send SMSes.
    permWriteContactPermission to modify contacts.
    permWriteExternalStoragePermission to write on the external storage.
Remarks
To request a permission, use PermissionRequest.
Business / UI classification: Neutral code
Component: wd300android.aar
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help