Skip to main content

Client Voice API Reference

Used to obtain information such as tickets required for voice.

API List

APIDescription
GetGmeTicketRequest a gme ticket.

API Details

GetGmeTicket

Request a gme ticket.

/**
* Request a gme ticket.
*
* @param VoiceChannelId A custom ID used to identify the voice channel.
* @param ResultCallback The result callback after the API execution ends, and it will be called in the GAME THREAD. For lifetime safety, it is recommended to use the CreateWeakCallback provided in PgosSDKCpp.h to create a lambda bound to an UObject.
*/
void GetGmeTicket(
const FString& VoiceChannelId,
TFunction<void(const FPgosResult& Ret, const FPgosClientGetGmeTicketResult* Data)> ResultCallback) const;

Parameters:

ParamTypeDescription
VoiceChannelIdconst FString&A custom ID used to identify the voice channel.
ResultCallbackTFunction<void(const FPgosResult& Ret, const FPgosClientGetGmeTicketResult* Data)>The result callback after the API execution ends, and it will be called in the GAME THREAD. For lifetime safety, it is recommended to use the CreateWeakCallback provided in PgosSDKCpp.h to create a lambda bound to an UObject.

Return: void