文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Core SDK

Vivox Core SDK

此页面不支持所选语言。
Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
  • Release notes
  • Developer Guide
    • Client SDK basics
    • Channels
    • Presence management
    • Messaging
      • Group text messages
      • Directed text
      • Send data through text messages
      • Text chat developer guide
        • Adaptive chat filter
        • Chat history
        • Text evidence management
        • Edit and Delete
        • Offline direct messages
        • Anti-flooding
        • Large text channel setting
        • Retrieve conversations list
        • Set Chat Markers
        • Channel-specific options
        • SDKSampleApp overview
    • Manage audio
    • Couch co-op
    • Android app development
    • iOS app development
    • macOS app development
    • Windows app development
    • Real-time recording
    • Speech-to-text audio transcription
    • Text-to-speech
    • Troubleshooting
  • Reference
  • Privacy overview
  1. Vivox Core SDK documentation

Retrieve conversations list

How to retrieve a list of conversations for a player.
阅读时间1 分钟
最后更新于 7 个月前

You can retrieve a user’s list of conversations. A conversation is a channel where a user has sent a message or a direct message (DM). You can use this API to populate a list of channels or DMs for a user to find their active chats.
注意
The returned Conversation list is ranked by most recent activity. Conversations with newer messages show up first in the results.
To retrieve the conversation list, sign in to the application and then use
vx_req_account_get_conversations
to make a request. This request returns:
  • The number of conversations.
  • The next cursor if there is a next page.
  • The list of conversations for this page.
The following code is an example of how to retrieve a user’s conversation list.
vx_req_account_get_conversations *req;vx_req_account_get_conversations_create(&req);req->cursor = 1; // Optional parameter if you’re fetching anything but the first pagereq->request_time = 1697135622123456; // Optional, unix time in microseconds, needs to be set to the same time to keep results consistent between pagesreq->page_size = 10; // Optional, otherwise server default is used. Default is 10vx_issue_request2(&req->base);
After you retrieve the user’s conversation list, the game must process the
vx_resp_account_get_conversations_t
response:
void HandleAccountGetConversationsResponse(vx_resp_account_get_conversations_t *resp){ // Handles the response, if a next-cursor exists in the response this can be used // to fetch the next page}

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。


    报告此页面的问题