Skip to content

Commit

Permalink
Merge pull request #152 from jpush/dev
Browse files Browse the repository at this point in the history
 update api docs
  • Loading branch information
wicked-tc130 authored Apr 4, 2019
2 parents 477dff1 + d521d8c commit 685f4d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions document/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ JMessage.createSendMessage({type: 'single', username: 'username', appKey: 'appke
- isCustomNotificationEnabled: 是否开启自定义接收方通知栏功能,设置为 `true` 后可设置下面的 `notificationTitle``notificationText`。默认未设置。
- notificationTitle: 设置此条消息在接收方通知栏所展示通知的标题。
- notificationText: 设置此条消息在接收方通知栏所展示通知的内容。
- needReadReceipt: (Android Only)设置这条消息的发送是否需要对方发送已读回执 开启之后,对方收到消息后,如果调用了setMsgHaveRead()接口, 则作为消息发送方,会收到已读消息回执事件通知
- needReadReceipt: 设置这条消息的发送是否需要对方发送已读回执 开启之后,对方收到消息后,如果调用了setMsgHaveRead()接口, 则作为消息发送方,会收到已读消息回执事件通知

### sendTextMessage

Expand Down Expand Up @@ -1759,14 +1759,17 @@ JMessage.resetUnreadMessageCount({ type: 'single', username: 'username', appKey:
### setMsgHaveRead
设置消息已读(Android Only)
设置消息已读
#### 示例
```js
JMessageModule.setMsgHaveRead(params,(successCallback) =>{},(failCallback) => {
JMessageModule.setMsgHaveRead(params,(result) =>{
var code = result.code
var desc = result.description
},(error) => {
var code = error.code
var desc = error.description
}
)
```
Expand Down Expand Up @@ -2132,7 +2135,7 @@ JMessage.removeSyncOfflineMessageListener(listener) // 移除监听(一般在 co
#### addReceiptMessageListener
已读消息回执事件监听。(Android Only)
已读消息回执事件监听。
##### 示例
Expand Down

0 comments on commit 685f4d4

Please sign in to comment.