Skip to content

Commit fba3170

Browse files
author
TC130精神扰乱装置
authored
Merge pull request #732 from jpush/dev
更新ChangeLog
2 parents 5afbd1a + 8ed1518 commit fba3170

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44

55
1. 新增本地通知api
66

7-
```
7+
```javascript
88
//添加本地通知
9-
addLocalNotification("messageID":String,"title":String,"content":String,"extras":{String:String})
9+
addLocalNotification({messageID:String,title:String,content:String,extras:{String:String}})
1010
//移除指定通知
11-
removeLocalNotification({"messageID":String})
11+
removeLocalNotification({messageID:String})
1212
//移除所有通知
1313
clearLocalNotifications()
1414
```
1515

1616
2. 调整获取registerId方法
1717

18-
```
18+
```javascript
1919
getRegistrationID(callback)
2020
//更新前 Android,ios无变化
2121
callback = (result) => {String}
2222
//更新后 Android,ios无变化
23-
callback = (result) => {"registerID":String}
23+
callback = (result) => {registerID:String}
2424
```
2525

2626
3. 调整设置调试模式方法
2727

28-
```
28+
```javascript
2929
//更新前
3030
setLoggerEnable({debug:boolean})
3131
//更新后
@@ -34,7 +34,7 @@
3434

3535
4. 调整设置ios角标方法
3636

37-
```
37+
```javascript
3838
//更新前
3939
setBadge({badge:int})
4040
//更新后,新增appBadge用于设置APP显示角标

0 commit comments

Comments
 (0)