NDEVR
API Documentation
PermissionHandlerabstract

Abstract interface for platform-specific permission handling. More...

Public Member Functions

virtual PermissionState checkPermission (const StringView &permission)=0
 Checks whether the specified permission is currently granted.
virtual PermissionState requestPermission (const StringView &permission)=0
 Requests the specified permission from the user or system.

Detailed Description

Abstract interface for platform-specific permission handling.


Implementations provide the logic for checking and requesting permissions on a given platform.

Definition at line 20 of file PermissionManager.h.

Member Function Documentation

◆ checkPermission()

virtual PermissionState PermissionHandler::checkPermission ( const StringView & permission)
pure virtual

Checks whether the specified permission is currently granted.

Parameters
[in]permissionThe identifier of the permission to check.
Returns
The current PermissionState for the requested permission.

◆ requestPermission()

virtual PermissionState PermissionHandler::requestPermission ( const StringView & permission)
pure virtual

Requests the specified permission from the user or system.

Parameters
[in]permissionThe identifier of the permission to request.
Returns
The resulting PermissionState after the request completes.

The documentation for this class was generated from the following file: