mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Update CHANGELOG.md
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -3,7 +3,15 @@ Cross Platform Modules Changelog
|
||||
##1.3.0 (2015, September ?)
|
||||
|
||||
### Breaking changes
|
||||
- [(#473)](https://github.com/NativeScript/NativeScript/issues/473) `application.ios.removeNotificationObserver` method now requires an observer instance to be supplied as the first argument. The observer instance is obtained from the `application.ios.addNotificationObserver` method which returns it. [See an example...](../ApiReference/application/HOW-TO.md)
|
||||
- [(#473)](https://github.com/NativeScript/NativeScript/issues/473) The `application.ios.removeNotificationObserver` method now requires an observer instance to be supplied as the first argument. The observer instance is obtained from the `application.ios.addNotificationObserver` method:
|
||||
|
||||
```JavaScript
|
||||
var observer = application.ios.addNotificationObserver(UIDeviceBatteryLevelDidChangeNotification,
|
||||
function (notification) {
|
||||
console.log(notification);
|
||||
});
|
||||
application.ios.removeNotificationObserver(observer, UIDeviceBatteryLevelDidChangeNotification);
|
||||
```
|
||||
|
||||
##1.2.1 (2015, August 18)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user