Skip to content

Commit

Permalink
V1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiulin committed Feb 14, 2019
1 parent 54a1c98 commit a987b3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ isLocationEnabled() => Promise|Get location state, true if location is on.
switchLocation(complete)|It will open **System Location Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
addLocationListener(callback) => Promise| Listen the location state changing, and it will return the listener. (Android only)
getLocationMode() => Promise| Get current location mode code: `0` - 'off', `1` - 'gps', `2` - 'network', `3` - 'gps & network'. (Android only)
addLocationModeListener(callback) => Promise| Listen the location mode changing, and it will return the listener. (Android only)
---|---
**Bluetooth**|
\* isBluetoothEnabled() => Promise|Get bluetooth state, true if bluetooth is on.
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# V1.7.2
**2019-02-14**

new API: `addLocationModeListener()`, only works in Android

# V1.7.1
**2018-12-30**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-system-setting",
"version": "1.7.1",
"version": "1.7.2",
"description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane...",
"main": "SystemSetting.js",
"homepage": "https://github.com/c19354837/react-native-system-setting",
Expand Down

0 comments on commit a987b3c

Please sign in to comment.