文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Unreal SDK

Vivox Unreal SDK

此页面不支持所选语言。
Vivox
​
​
Vivox Unreal SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
  • Tutorials
  • Reference
    • Vivox Core Unreal class model overview
    • Vivox Unreal conventions
    • Unreal API Reference Manual
      • Class List
        • AccountId
        • Channel3DProperties
        • ChannelId
        • FVivoxCoreModule
        • IAudioDevice
        • IAudioDevices
        • IChannelConnectionState
        • IChannelSession
        • IChannelTextMessage
        • IClient
        • IDirectedTextMessage
        • ILoginSession
        • IParticipant
        • IParticipantProperties
        • IPresenceLocation
        • IPresenceSubscription
        • ITextMessage
        • ITextToSpeech
        • ITranscribedMessage
        • ITTSAudioBuffer
        • ITTSMessage
        • ITTSVoice
        • Presence
        • VivoxConfig
      • Deprecated List
    • Access Token Developer Guide
    • Server to Server Web API Reference Guide
    • Third-party license information
  1. Vivox Unreal SDK documentation

AccountId

Reference the AccountId class for representing Vivox user accounts.
阅读时间5 分钟
最后更新于 8 个月前

More...
#include <AccountId.h>

Public Functions

Name

AccountIdCreateFromUri(const FString & uri, const TOptional< FString > & displayName =TOptional< FString >(), const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
Create an AccountId from a URI. Note: Internal use only.
FStringAccountNameFromUri(const FString & uri, const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
A shortcut for AccountId::CreateFromUri(uri).Name(). Note: Internal use only.
boolIsNullOrEmpty(AccountId * id)
True if ID is null or empty.
AccountId()
Default constructor.
AccountId(const FString & issuer, const FString & name, const FString & domain, const TOptional< FString > & displayName =TOptional< FString >(), const TOptional< TArray< FString > > & spokenLanguages =TOptional< TArray< FString > >(), const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
Constructor.
const FString &Issuer() const
The issuer that is responsible for authenticating this account.
const FString &Name() const
The unique account name that you assigned to the player.
const FString &Domain() const
The Vivox domain that provides service for this account.
const FString &DisplayName() const
An optional display name that is seen by others. The default is an empty string.
const TArray< FString > &SpokenLanguages() const
An optional array of languages used as hints for audio transcription. The default is an empty array, which implies "en".
const FString &UnityEnvironmentId() const
The Unity Environment of the UGS Project.
boolIsEmpty() const
True if Issuer, Name, and Domain are all empty.
boolIsValid() const
True if Issuer and Domain are non-empty, and Name meets restrictions.
FStringToString() const
Internal use only.

Detailed Description

class AccountId;
The unique identifier for a player that accesses a Vivox instance.

Public Functions Documentation

function CreateFromUri

static AccountId CreateFromUri( const FString & uri, const TOptional< FString > & displayName =TOptional< FString >(), const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
Create an
AccountId
from a URI. Note: Internal use only.
Parameters:
  • uri The URI of the account.
  • displayName An optional display name that is seen by others. The default is an empty string.
Return: The
AccountId()
.

function AccountNameFromUri

static FString AccountNameFromUri( const FString & uri, const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
A shortcut for AccountId::CreateFromUri(uri).
Name()
. Note: Internal use only.
Parameters:
  • uri The URI of the account.
Return: The name returned from an [AccountId] created with a URI.

function IsNullOrEmpty

static bool IsNullOrEmpty( AccountId * id)
True if ID is null or empty.

function AccountId

AccountId()
Default constructor.

function AccountId

AccountId( const FString & issuer, const FString & name, const FString & domain, const TOptional< FString > & displayName =TOptional< FString >(), const TOptional< TArray< FString > > & spokenLanguages =TOptional< TArray< FString > >(), const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
Constructor.
Parameters:
  • issuer The issuer that is responsible for authenticating this account.
  • name The unique account name that you assigned to the player.
  • domain The Vivox domain that provides service for this account, for example: mt1s.vivox.com.
  • displayName An optional display name that is seen by others. The default is an empty string.
  • spokenLanguages An optional array of languages used as hints for audio transcription. The default is an empty array, which implies "en".
  • unityEnvironmentId The Unity Environment Id, from the Unity Dashboard, to be embedded in the Accounts URI, primarily for Moderation requests
Remark: The combined length of 'Issuer' + 'Name' must not exceed 124 characters. The DisplayName must not exceed 63 characters. Name and DisplayName can only use the letters A-Z and a-z, the numbers 0-9, and the special characters =+-_.!~()% You can specify up to three spoken languages in order of preference to inform transcription of all users in transcribed channels. Note: IETF language tag strings are not validated, but are expected to conform to BCP 47 (https://tools.ietf.org/html/bcp47).

function Issuer

const FString & Issuer() const
The issuer that is responsible for authenticating this account.

function Name

const FString & Name() const
The unique account name that you assigned to the player.
Remark: This is the value the SDK uses internally to identify the user. To ensure character requirements, this typically matches the game or online ID of the player, or a hash of it.

function Domain

const FString & Domain() const
The Vivox domain that provides service for this account.

function DisplayName

const FString & DisplayName() const
An optional display name that is seen by others. The default is an empty string.
Remark: The Vivox SDK makes no use of this value internally. You can use it in your game however you want, such as for example, in rosters or buddy lists. It is not required to be unique.

function SpokenLanguages

const TArray< FString > & SpokenLanguages() const
An optional array of languages used as hints for audio transcription. The default is an empty array, which implies "en".
Remark: You can specify up to three spoken languages in order of preference to inform transcription of all users in transcribed channels. Note: IETF language tag strings are not validated, but are expected to conform to BCP 47 (https://tools.ietf.org/html/bcp47).

function UnityEnvironmentId

const FString & UnityEnvironmentId() const
The Unity Environment of the UGS Project.

function IsEmpty

bool IsEmpty() const
True if Issuer, Name, and Domain are all empty.

function IsValid

bool IsValid() const
True if Issuer and Domain are non-empty, and Name meets restrictions.

function ToString

FString ToString() const
Internal use only.

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

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

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

  • 在本页上
    • Public Functions

    • Detailed Description

    • Public Functions Documentation

      • function CreateFromUri

      • function AccountNameFromUri

      • function IsNullOrEmpty

      • function AccountId

      • function AccountId

      • function Issuer

      • function Name

      • function Domain

      • function DisplayName

      • function SpokenLanguages

      • function UnityEnvironmentId

      • function IsEmpty

      • function IsValid

      • function ToString


报告此页面的问题