Skip to content

Commit

Permalink
V1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
c19354837 committed May 27, 2018
1 parent 03f0869 commit 43b2187
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ addWifiListener(callback):Promise| Listen the wifi state changing, and it will r
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)
---|---
**Bluetooth**|
isBluetoothEnabled():Promise|Get bluetooth state, true if bluetooth is on.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# V1.4.4
**2018-05-27**

new API: `getLocationMode()`, see [detail](https://github.com/c19354837/react-native-system-setting/issues/35)

fix bug: all listener may get `null` sometime

# V1.4.3
**2018-05-21**

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.4.3",
"version": "1.4.4",
"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 43b2187

Please sign in to comment.