Documentation

​
​

Development

User Acquisition

Monetization

Industry

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
      • Buddy behavior
      • Add a buddy
      • Delete a buddy
      • Presence capabilities
      • Set presence information
      • Buddy presence changes
      • Companion applications
    • Messaging
    • 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

Buddy presence changes

Review valid online states for the presence system.
Read time 1 minute
Last updated 8 months ago

After User B has approved User A as a buddy, User A can see changes to User B's online status.
Online status consists of two pieces of information: an online state and a custom message.
The following list details valid online states:
  • buddy_presence_offline = 0
  • buddy_presence_online = 1
  • buddy_presence_busy = 2
  • buddy_presence_chat = 3
  • buddy_presence_away = 4
  • buddy_presence_extended_away = 5
You can use any text for the custom message, but it must be UTF-8 encoded. Whenever User B changes this information, User A receives a vx_evt_buddy_presence message.
The following code displays an example of the process for handling this message:
void HandleEvtBuddyPresence(vx_evt_buddy_presence *evt){ printf("%s is now %s (%s)\n", evt->encoded_uri_with_tag,vx_get_presence_state_string(evt->presence), evt->custom_message);}
Note
The vx_evt_buddy_presence.encoded_uri_with_tag field distinguishes the presence information of a single user that is signed in at multiple locations. The application can choose to display this information separately or aggregate the information together.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page