|
|
|
|
|
- Properties specific to Permission variables
Permission (Variable type) In french: Permission
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.
perm is Permission = PermissionList("android.permission.CAMERA")
IF NOT perm.Accordé
END
Remarks Properties specific to Permission variables The following properties can be used to handle permissions: | | | Property name | Type used | Effect |
---|
Description | Character string | Description of the permission. This property is read-only. | Granted | Boolean | - True if permission has been granted to the application (at the time the variable is created),
- False otherwise.
This property is read-only. | Name | Character string | Name 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|