Skip to main content

DevicePermissions

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

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

public class DevicePermissions

Access this class through the Device singleton.

Constructors

Instance memberDevicePermissions()

Initializes a new instance of DevicePermissions.

Methods

Instance memberCheck(type)

Checks the status of the specified permission.

ParameterTypeDescription
typePermissionTypeThe type of permission to check.

Returns: PermissionStatus. The current permission status (e.g., granted, denied).

Instance memberRequest(type)

Requests the specified permission from the user.

ParameterTypeDescription
typePermissionTypeThe type of permission to request.

Returns: PermissionStatus. The permission status indicating whether the permission was granted or denied.

Instance memberShouldShowRationale(type)

Determines if an educational user interface should be displayed to explain how the specified permission will be used in the application.

ParameterTypeDescription
typePermissionTypeThe type of permission to check for rationale.

Returns: Boolean. true if rationale should be shown; otherwise, false.