diff --git a/API.md b/API.md index cc89bf0..ad5299b 100644 --- a/API.md +++ b/API.md @@ -33,6 +33,7 @@ addWifiListener(callback):Promise| Listen the wifi state changing, and it will r **Location**| 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) ---|--- **Bluetooth**| isBluetoothEnabled():Promise|Get bluetooth state, true if bluetooth is on. @@ -43,6 +44,7 @@ addBluetoothListener(callback):Promise| Listen the bluetooth state changing, and **Airplane**| isAirplaneEnabled():Promise|Get airplane state, true if airplane is on. switchAirplane(complete)|It will open **System Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call. +addAirplaneListener(callback):Promise| Listen the airplane state changing, and it will return the listener. (Android only) ---|--- **Other**| setAppStore(isAppStore:bool)| `true` means that you'll submit your app to App Store. In order to throught the App Store review, it has some side effects, see [App Store](https://github.com/c19354837/react-native-system-setting#app-store).

`false` means that your app will not upload to App Store, and you can use any APIs at will. diff --git a/CHANGELOG.md b/CHANGELOG.md index 143b527..35fdb50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# V1.4.2 +**2018-05-07** + +new API: `addLocationListener()`, only works in Android + +new API: `addAirplaneListener()`, only works in Android + # V1.4.1 **2018-04-23** diff --git a/package.json b/package.json index 7a456a6..ea8c426 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-system-setting", - "version": "1.4.1", + "version": "1.4.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",