Closed
Description
Short overview
I want to trigger permission requests manually, so that I can better guide users to set permissions.
Detailed feature description
const Permission = {
/**
* 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
},
}