react-native: PermissionsAndroid should have requestMultiple method

This commit is contained in:
Nick Redmond
2017-04-28 09:50:30 -07:00
parent 931da8b1fb
commit 4e34161855
+6
View File
@@ -7053,6 +7053,12 @@ export interface PermissionsAndroidStatic {
* and then shows the system permission dialog
*/
request(permission: Permission, rationale?: Rationale): Promise<string>
/**
* 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
*/
requestMultiple(permissions: Array<string>): Promise<{[permission: string]: PermissionStatus}>
}
export interface PushNotificationPermissions {