|
|
|
|
- Properties specific to the description of Permission variables
Permission (Type of variable) In french: Permission
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.
// 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 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 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|