# DevicePermissions

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods for interacting with device permissions, such as requesting, checking, and displaying rationale for permissions.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DevicePermissions
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DevicePermissions
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](/hybrid/start/api/general/wisej.hybrid.device.md) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DevicePermissions()

Initializes a new instance of [DevicePermissions](/hybrid/start/api/permissions/wisej.hybrid.devicepermissions.md).

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)Check(type)

Checks the status of the specified permission.

| Parameter | Type                                                                                              | Description                      |
| --------- | ------------------------------------------------------------------------------------------------- | -------------------------------- |
| **type**  | [PermissionType](/hybrid/start/api/permissions/wisej.hybrid.shared.permissions.permissiontype.md) | The type of permission to check. |

**Returns:** [PermissionStatus](/hybrid/start/api/permissions/wisej.hybrid.modules.permissions.permissionstatus.md). The current permission status (e.g., granted, denied).

### ![](/files/CCV9PPenlC1YZvNh1I6R)Request(type)

Requests the specified permission from the user.

| Parameter | Type                                                                                              | Description                        |
| --------- | ------------------------------------------------------------------------------------------------- | ---------------------------------- |
| **type**  | [PermissionType](/hybrid/start/api/permissions/wisej.hybrid.shared.permissions.permissiontype.md) | The type of permission to request. |

**Returns:** [PermissionStatus](/hybrid/start/api/permissions/wisej.hybrid.modules.permissions.permissionstatus.md). The permission status indicating whether the permission was granted or denied.

### ![](/files/CCV9PPenlC1YZvNh1I6R)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](/hybrid/start/api/permissions/wisej.hybrid.shared.permissions.permissiontype.md) | The type of permission to check for rationale. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if rationale should be shown; otherwise, false.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/permissions/wisej.hybrid.devicepermissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
