DevicePermissions
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods for interacting with device permissions, such as requesting, checking, and displaying rationale for permissions.
- C#
- VB.NET
public class DevicePermissions
Public Class DevicePermissions
Access this class through the Device singleton.
Constructors
DevicePermissions()
Initializes a new instance of DevicePermissions.
Methods
Check(type)
Checks the status of the specified permission.
| Parameter | Type | Description |
|---|---|---|
| type | PermissionType | The type of permission to check. |
Returns: PermissionStatus. The current permission status (e.g., granted, denied).
Request(type)
Requests the specified permission from the user.
| Parameter | Type | Description |
|---|---|---|
| type | PermissionType | The type of permission to request. |
Returns: PermissionStatus. The permission status indicating whether the permission was granted or denied.
ShouldShowRationale(type)
Determines if an educational user interface should be displayed to explain how the specified permission will be used in the application.
| Parameter | Type | Description |
|---|---|---|
| type | PermissionType | The type of permission to check for rationale. |
Returns: Boolean. true if rationale should be shown; otherwise, false.