From 24182a1c328cff54ec211db4186b411b2b7c974d Mon Sep 17 00:00:00 2001 From: Neuber Oliveira Date: Fri, 7 Dec 2018 12:59:08 -0200 Subject: [PATCH] readme update --- README.md | 8 ++++++-- index.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2efb123..51b24da 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,13 @@ This lib will emitevent wheneaver the GPS status change, like when the permissio #### Methods +Open the system Settings to enable user to toggle Location on. + +The parameter `openInDetails` (android only) is used to open app details screen (android M+ only), so the user can toggle the permission in `Permissions` tab. + ```javascript -//Open the system Settings to enable user to toggle Location on -GPSState.openSettings(); +//openInDetails defaults to true +GPSState.openSettings(openInDetails:boolean); ``` ```javascript diff --git a/index.js b/index.js index a48603b..00fb171 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ GPSState.getStatus = ()=>{ return GPSState._getStatus(); } -GPSState.openSettings = (openInDetails=false)=>{ +GPSState.openSettings = (openInDetails=true)=>{ GPSState._openSettings(openInDetails); }