TrustNXTTrustNXT
React SDKAPI ReferenceFunctions

queryAllPermissions()

function queryAllPermissions(): Promise<PermissionStates>;

Query all SDK-relevant permissions without triggering any prompts.

Returns

Promise<PermissionStates>

Example

const states = await queryAllPermissions();
if (states.camera === 'denied') showSettingsPrompt();

On this page