Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
neuberoliveira committed Dec 7, 2018
1 parent 4326a75 commit 24182a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ GPSState.getStatus = ()=>{
return GPSState._getStatus();
}

GPSState.openSettings = (openInDetails=false)=>{
GPSState.openSettings = (openInDetails=true)=>{
GPSState._openSettings(openInDetails);
}

Expand Down

0 comments on commit 24182a1

Please sign in to comment.