You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to trigger permission requests manually, so that I can better guide users to set permissions.
Detailed feature description
constPermission={/** * Query whether the user has a certain permission * @param {string} permissionName - The name of the permission * @returns {boolean} - Whether the user has the permission */query(permissionName){// Implement query logic},/** * Request a certain permission * @param {string} permissionName - The name of the permission * @returns {Promise<boolean>} - A Promise that resolves if the permission is granted, and rejects if the permission is not granted */request(permissionName){// Implement request logic},}