Skip to content

Commit 06650ba

Browse files
KenChoiKenChoi
authored andcommitted
update api doc
1 parent 77c3b23 commit 06650ba

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

document/API.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -828,28 +828,14 @@ JMessage.enterConversation({ type: 'single', username: 'username', appKey: 'appK
828828
829829
### exitConversation
830830
831-
**(Android only)** 退出聊天会话。调用后,聊天会话之后的相关消息通知将会被触发。
831+
**(Android only)** 退出当前聊天会话。调用后,聊天会话之后的相关消息通知将会被触发。
832832
833833
#### 示例
834834
835835
```js
836-
JMessage.exitConversation({ type: 'single', username: 'username', appKey: 'appKey' },
837-
(conversation) => {
838-
// do something.
839-
840-
}, (error) => {
841-
var code = error.code
842-
var desc = error.description
843-
)
836+
JMessage.exitConversation();
844837
```
845838
846-
#### 参数说明
847-
848-
- type: 会话类型。可以为 'single' 或 'group'。
849-
- username: 对方用户的用户名。当 `type` 为 'single' 时,`username` 为必填。
850-
- appKey: 对方用户所属应用的 AppKey。如果不填,默认为当前应用。
851-
- groupId: 对象群组 id。当 `type` 为 'group' 时,`groupId` 为必填。
852-
853839
### getConversation
854840
855841
获取[聊天会话对象](./Models.md)。

0 commit comments

Comments
 (0)