AccountId
Reference the AccountId class for representing Vivox user accounts.
Read time 3 minutesLast updated 2 days ago
More...
#include <AccountId.h>Public Functions
Name | |
|---|---|
| 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. |
| FString | AccountNameFromUri(const FString & uri, const TOptional< FString > & unityEnvironmentId =TOptional< FString >()) A shortcut for AccountId::CreateFromUri(uri).Name(). Note: Internal use only. |
| bool | IsNullOrEmpty(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. |
| bool | IsEmpty() const True if Issuer, Name, and Domain are all empty. |
| bool | IsValid() const True if Issuer and Domain are non-empty, and Name meets restrictions. |
| FString | ToString() const Internal use only. |
Detailed Description
The unique identifier for a player that accesses a Vivox instance.class AccountId;
Public Functions Documentation
function CreateFromUri
Create anstatic AccountId CreateFromUri( const FString & uri, const TOptional< FString > & displayName =TOptional< FString >(), const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
AccountId- uri The URI of the account.
- displayName An optional display name that is seen by others. The default is an empty string.
AccountId()function AccountNameFromUri
A shortcut for AccountId::CreateFromUri(uri).static FString AccountNameFromUri( const FString & uri, const TOptional< FString > & unityEnvironmentId =TOptional< FString >())
Name()- uri The URI of the account.
function IsNullOrEmpty
True if ID is null or empty.static bool IsNullOrEmpty( AccountId * id)
function AccountId
Default constructor.AccountId()
function AccountId
Constructor. Parameters: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 >())
- 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
function Issuer
The issuer that is responsible for authenticating this account.const FString & Issuer() const
function Name
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.const FString & Name() const
function Domain
The Vivox domain that provides service for this account.const FString & Domain() const
function DisplayName
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.const FString & DisplayName() const
function SpokenLanguages
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).const TArray< FString > & SpokenLanguages() const
function UnityEnvironmentId
The Unity Environment of the UGS Project.const FString & UnityEnvironmentId() const
function IsEmpty
True if Issuer, Name, and Domain are all empty.bool IsEmpty() const
function IsValid
True if Issuer and Domain are non-empty, and Name meets restrictions.bool IsValid() const
function ToString
Internal use only.FString ToString() const