Returns a promise resolving to a boolean value as to whether the specified permissions has been granted. Possible return values are GRANTED, DENIED, and NEVER_ASK_AGAIN.
+
Returns a promise resolving to a boolean value as to whether the specified permissions has been granted.
Parameters:
@@ -98,7 +106,7 @@
request()
request(permission, [rationale]);
-
Prompts the user to enable a permission and returns a promise resolving to a string value indicating whether the user allowed or denied the request
+
Prompts the user to enable a permission and returns a promise resolving to a string value (see result strings above) indicating whether the user allowed or denied the request or does not want to be asked again.
Prompts the user to enable multiple permissions in the same dialog and returns an object with the permissions as keys and strings as values indicating whether the user allowed or denied the request
+
Prompts the user to enable multiple permissions in the same dialog and returns an object with the permissions as keys and strings as values (see result strings above) indicating whether the user allowed or denied the request or does not want to be asked again.