기술 자료

​
​

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
    • 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

Directed Text

Learn how to send and receive direct text messages to other users.
읽는 시간 1분
최근 업데이트: 8달 전

Vivox provides directed text by using a similar process to what is used for group text. You can add players to existing text sessions, and you can send text messages directly to any user who is signed in, independent of being in a channel with them.
Use directed text for short user-to-user messages (sometimes called whispers or private/direct messages), or to implement invite to channel capabilities.
참고
To receive directed text messages, a user must be signed in with
enable_buddies_and_presence = 1
. For more information about Buddies and Presence, see Presence capabilities.
Use the
vx_req_account_send_msg
request to send a text message to another user.
참고
login_state_logged_in
indicates that a user is signed in and can issue further requests, but it does not guarantee that the user can receive direct text messages. A best practice is using the
vx_evt_presence_updated
event to indicate when the local participant is available to receive direct text messages.
Using
vx_evt_presence_updated
is not mandatory. However, in testing scenarios where there could be more than one user signed into the local SDK messaging each other,
vx_evt_presence_updated
guarantees the availability of receiving a directed message.
The following code displays an example of this process:
. . .vx_req_account_send_msg *req;vx_req_account_send_msg_create(&req);req->connector_handle = vx_strdup("c1");req->account_handle = vx_strdup(".issuer-w-dev.mytestaccountname.");req->user_uri = vx_strdup("sip:theotheruser@vd1.vivox.com");req->message_body = vx_strdup("Hey there buddy!");vx_issue_request3(&req->base, &request_count);. . .
When a user-to-user text message is available, the
vx_evt_user_to_user_message
event is sent to the game.
The following code displays an example of this action:
void HandleUserToUserMessageEvent(vx_evt_user_to_user_message *evt){ printf("Message from %s: %s\n", evt->from_uri, evt->message_body);}

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.


    이 페이지의 문제 보고