EOS_Presence_GetJoinInfo

EOS API reference page for EOS_Presence_GetJoinInfo

阅读时间2分钟

This function is part of the Presence Interface.

Remarks

Gets a join info custom game-data string for a specific user. This is a helper function for reading the presence data related to how a user can be joined. Its meaning is entirely application dependent. This value will be valid only after a QueryPresence call has successfully completed.

Return Value

  • An EOS_EResult that indicates whether the location string was copied into the OutBuffer.

  • EOS_Success if the information is available and passed out in OutBuffer

  • EOS_InvalidParameters if you pass a null pointer for the out parameter

  • EOS_NotFound if there is user or the location string was not found.

  • EOS_LimitExceeded - The OutBuffer is not large enough to receive the location string. InOutBufferLength contains the required minimum length to perform the operation successfully.

See Also

EOS_PRESENCEMODIFICATION_JOININFO_MAX_LENGTH

Parameters

EOS_Presence_GetJoinInfo

Parameter Type And NameUsage Information
EOS_HPresence Handle
const EOS_Presence_GetJoinInfoOptions* OptionsObject containing an associated user
char* OutBufferThe buffer into which the character data should be written. The buffer must be long enough to hold a string of EOS_PRESENCEMODIFICATION_JOININFO_MAX_LENGTH.
int32_t* InOutBufferLengthUsed as an input to define the OutBuffer length. The input buffer should include enough space to be null-terminated. When the function returns, this parameter will be filled with the length of the string copied into OutBuffer.