Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ConversationManager

Index

Conversation callbacks

Create a conversation

Delete a conversation

Delete the draft of a conversation

Get the total unread message count of all conversations

Get a conversation list

Get the conversation list of recent contacts

Pin a conversation to the top

Set the draft of a conversation

Conversation callbacks

TIMSetConvEventCallback

  • note

    Conversation events include:

    Session added Session deleted Session updated. Session starts Session ends Any operation that creates a new session will trigger a new session event, such as calling an interfaceTIMConvCreateSession is created, first message of unknown session is received, etc. Any operation that has a session change will trigger a session update event, such as receiving a new session message, message retraction, read report, etc. Call interfaceTIMConvDeleteThe session delete event is fired when the session is deleted successfully.

    Parameters

    Returns Promise<any>

TIMSetConvTotalUnreadMessageCountChangedCallback

Create a conversation

TIMConvCreate

  • note

    A conversation is a one-to-one or group chat, through which messages are sent and received between you and another user or in a group. This API creates a conversation or obtains conversation information. The conversation type (group or one-to-one chat) and the conversation party identifier (the conversation party's account or group ID) need to be specified. Conversation information is returned via the callback cb.

    Parameters

    Returns Promise<commonResponse>

    Promise的response返回value为:{ code, desc, json_param, user_data }

Delete a conversation

TIMConvDelete

Delete the draft of a conversation

TIMConvCancelDraft

  • note

    A conversation is a one-to-one or group chat, through which messages are sent and received between you and another user or in a group. This API creates a conversation or obtains conversation information. The conversation type (group or one-to-one chat) and the conversation party identifier (the conversation party's account or group ID) need to be specified. Conversation information is returned via the callback cb.

    Parameters

    Returns number

    int returns TIM_SUCC to indicate that the interface invocation is successful, and other values ​​indicate that the interface invocation fails. For the definition of each return value, please refer to TIMResult

Get the total unread message count of all conversations

TIMConvGetTotalUnreadMessageCount

Get a conversation list

TIMConvGetConvInfo

Get the conversation list of recent contacts

TIMConvGetConvList

Pin a conversation to the top

TIMConvPinConversation

Set the draft of a conversation

TIMConvSetDraft

Generated using TypeDoc