EOS_RTCAdmin_CopyUserTokenByUserId

EOS API reference page for EOS_RTCAdmin_CopyUserTokenByUserId

2 分で読める

Remarks

Fetches a user token for a given user ID when called inside of the OnQueryJoinRoomTokenComplete callback.

Return Value

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

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

  • EOS_NotFound if the user token is not found

See Also

EOS_RTCAdmin_UserToken_Release

Parameters

EOS_RTCAdmin_CopyUserTokenByUserId

Parameter Type And NameUsage Information
EOS_HRTCAdmin Handle
const EOS_RTCAdmin_CopyUserTokenByUserIdOptions* OptionsStructure containing the user ID being accessed
EOS_RTCAdmin_UserToken** OutUserTokenThe user token for the given user ID, if it exists and is valid. Use EOS_RTCAdmin_UserToken_Release when finished

If successful, this function provides data to the caller through an output parameter. Once you are finished with the data, you must release it by making the appropriate call into the EOS SDK.