文档

​
​

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

Set Chat Markers

Set chat markers to track message read status.
阅读时间1 分钟
最后更新于 8 个月前

The set Chat Markers API gives you control over the creation of Chat Markers. You can use Chat Markers to mark messages as read. It also provides data for the Conversation list API. This functionality works in both channels and DMs.
To set a conversation's read marker, sign in to the application and use
vx_req_account_chat_history_set_marker
to make a request. This request returns whether the marker was created or not.
注意
The marker is created even if the URI or message doesn’t exist.
The following code is an example of how to set a conversation marker.
vx_req_account_chat_history_set_marker *req;vx_req_account_chat_history_set_marker_create(&req);req->with_uri = vx_strdup(”sip:confctl-g-issuer.room_name.@domain”); // Optional parameter, if not set it will use the channel you’ve joined most recentlyreq->message_id = vx_strdup(“1234567890”); // The message id you’re setting the marker forreq->seen_at = 1234567890; // Optional, unix timestamp which defaults to the current time if not setvx_issue_request2(&req->base);
After you retrieve this information, the game must process the
vx_resp_account_chat_history_set_marker_t
response:
void HandleAccountChatHistorySetMarkerResponse(vx_resp_account_chat_history_set_marker_t *resp){ // Handles the response, nothing to really be done here unless the request fails}

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

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

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


    报告此页面的问题