From 27d0fd06e9a607faf049c97285eac4a8f3d2e336 Mon Sep 17 00:00:00 2001
From: Website Deployment Script
Date: Mon, 9 Jan 2017 10:10:19 +0000
Subject: [PATCH] Updated docs for next
---
releases/next/docs/permissionsandroid.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/releases/next/docs/permissionsandroid.html b/releases/next/docs/permissionsandroid.html
index 39a4b44dd04..7f3b53443d2 100644
--- a/releases/next/docs/permissionsandroid.html
+++ b/releases/next/docs/permissionsandroid.html
@@ -3,13 +3,13 @@ Some permissions are granted by default when the application is installed
so long as they appear in AndroidManifest.xml. However, "dangerous"
permissions require a dialog prompt. You should use this module for those
permissions.
On devices before SDK version 23, the permissions are automatically granted
-if they appear in the manifest, so checkPermission and requestPermission
+if they appear in the manifest, so check and request
should always be true.
If a user has previously turned off a permission that you prompt for, the OS
will advise your app to show a rationale for needing the permission. The
optional rationale argument will show a dialog prompt only if
necessary - otherwise the normal permission prompt will appear.
Example #
async function requestCameraPermission() {
try {
- const granted = await PermissionsAndroid.requestPermission(
+ const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.CAMERA,
{
'title': 'Cool Photo App Camera Permission',