Extension Name: listPermission
With this extension it is possible to make a whitelist at once. It also verify the permissions granted in a practical way.
Latest Version: 2.1 Released:2020-05-21T07:03:00Z Last Updated:2020-05-25T13:54:00Z
2.Blocks
Methods/Functions
Events
3.Documentation
Methods
Request Permissions
In a list of permissions, a window will open for the user, whether or not to allow permissions that have not been granted.
listPermissions ~ list
Check Multiple Permissions
Parses a whitelist and returns an event (ResultCheckMultiplePermission) with a denied and allowed whitelist.
listPermissions ~ list
Check Garanted All
When Verifying that all the permissions mentioned in the list have been allowed.
listPermissions ~ list Returns : boolean
Check Single Permission
Checks whether the mentioned permission has been granted.
listPermissions ~ list Returns : boolean
Events
Result Check Multiple Permissions
CheckMultiplePermission result.‘isDoneCounting’
listPermissionsGrated~ list
listPermissionsDanied~ list
Result Permission Request
RequestListPermission result.
listPermissionsGrated~ list
listPermissionsDanied~ list
grantedAll~ boolean (new)
For now, I’m using the stopwatch to check that all permissions have been allowed, but when the OnRequestPermission block issue is resolved, it will be much simpler and more practical. As shown above.
This number of blocks is precisely due to the problem mentioned. With the form you mentioned, there is no way to list it (check out the video). With multiple permissions the performance drops a little, because you are opening and closing the dialog.
The list I’m talking about is a sequence of permissions in the same dialog. When the sequence is finished, the OnRequestPermission block will be called with the list of permissions granted and another with the permissions denied.
and then queried them one after the other and displayed how many of them are granted or denied. The same can definitely be done with my approach, I don’t need to show it.
Obviously, I’m not criticizing your approach, I’m just showing you another way to execute a whitelist in the same dialog. Looking at the video I uploaded, you’ll see a list of permissions in the same dialog, all in a single request.
Yes, I understand that. However, it is not a list, just a kind of notification that iteratively counts the granted or denied permissions from a list. Namely from a previously defined list of 3 items (the required permissions, i.e. a list of length 3). The same should be possible using notifier.
My knowledge in java is also not one of the best. The problem was that I was not getting a response from the requestPermission method in the main class and there was no way to extend the class to Activity. So, I chose to create a new class by extending the Activity to be able to call the requestPermission method and get the result in onRequestPermissionsResult.