Skip to content

Commit d521d8c

Browse files
author
wicked-tc130
authored
Merge pull request #151 from wicked-tc130/dev
update api docs
2 parents 6b011ae + 0c5d922 commit d521d8c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

document/API.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ JMessage.createSendMessage({type: 'single', username: 'username', appKey: 'appke
11391139
- isCustomNotificationEnabled: 是否开启自定义接收方通知栏功能,设置为 `true` 后可设置下面的 `notificationTitle``notificationText`。默认未设置。
11401140
- notificationTitle: 设置此条消息在接收方通知栏所展示通知的标题。
11411141
- notificationText: 设置此条消息在接收方通知栏所展示通知的内容。
1142-
- needReadReceipt: (Android Only)设置这条消息的发送是否需要对方发送已读回执 开启之后,对方收到消息后,如果调用了setMsgHaveRead()接口, 则作为消息发送方,会收到已读消息回执事件通知
1142+
- needReadReceipt: 设置这条消息的发送是否需要对方发送已读回执 开启之后,对方收到消息后,如果调用了setMsgHaveRead()接口, 则作为消息发送方,会收到已读消息回执事件通知
11431143

11441144
### sendTextMessage
11451145

@@ -1759,14 +1759,17 @@ JMessage.resetUnreadMessageCount({ type: 'single', username: 'username', appKey:
17591759
17601760
### setMsgHaveRead
17611761
1762-
设置消息已读(Android Only)
1762+
设置消息已读
17631763
17641764
#### 示例
17651765
17661766
```js
1767-
JMessageModule.setMsgHaveRead(params,(successCallback) =>{},(failCallback) => {
1767+
JMessageModule.setMsgHaveRead(params,(result) =>{
17681768
var code = result.code
17691769
var desc = result.description
1770+
},(error) => {
1771+
var code = error.code
1772+
var desc = error.description
17701773
}
17711774
)
17721775
```
@@ -2132,7 +2135,7 @@ JMessage.removeSyncOfflineMessageListener(listener) // 移除监听(一般在 co
21322135
21332136
#### addReceiptMessageListener
21342137
2135-
已读消息回执事件监听。(Android Only)
2138+
已读消息回执事件监听。
21362139
21372140
##### 示例
21382141

0 commit comments

Comments
 (0)