Options
All
  • Public
  • Public/Protected
  • All
Menu

LocalCache contains APIs for local operations.

Index

Functions

  • 对本地会话的未读消息数清零。

    connection.localCache.clearConversationUnreadCount({conversationId: 'conversationId', conversationType: 'singleChat' })
    

    Parameters

    Returns Promise<void>

  • 删除单个本地会话。

    connection.localCache.removeLocalConversation({conversationId: 'conversationId', conversationType: 'singleChat' })
    

    Parameters

    Returns Promise<void>

  • 设置本地会话自定义字段。

    connection.localCache.setLocalConversationCustomField({conversationId: 'conversationId', conversationType: 'singleChat', customField: {key:'value'} })
    

    Parameters

    Returns Promise<void>

Generated using TypeDoc