EOS_Leaderboards_QueryLeaderboardDefinitions

EOS API reference page for EOS_Leaderboards_QueryLeaderboardDefinitions

3 分で読めます

This function is part of the Leaderboards Interface.

Remarks

Query for a list of existing leaderboards definitions including their attributes.

Return Value

  • EOS_Success if the operation completes successfully

  • EOS_InvalidParameters if any of the options are incorrect

Parameters

EOS_Leaderboards_QueryLeaderboardDefinitions

Parameter Type And NameUsage Information
EOS_HLeaderboards Handle
const EOS_Leaderboards_QueryLeaderboardDefinitionsOptions* OptionsStructure containing information about the application whose leaderboard definitions we're retrieving.
void* ClientDataArbitrary data that is passed back to you in the CompletionDelegate.
const EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallback CompletionDelegateThis function is called when the query operation completes.

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallback to report the results of its operation. See the EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallbackInfo page for more details, or check the [Callback Data] section below.

Callback Remarks

Function prototype definition for callbacks passed to EOS_Leaderboards_QueryLeaderboardDefinitions

Callback Parameters

EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallback

Parameter Type And NameUsage Information
const EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallbackInfo* DataA EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallbackInfo containing the output information and result

Callback Data

The EOS SDK passes the following data structure to the callback function:

EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallbackInfo

PropertyValue
EOS_EResult ResultCodeThe EOS_EResult code for the operation. EOS_Success indicates that the operation succeeded; other codes indicate errors.
void* ClientDataContext that was passed into EOS_Leaderboards_QueryLeaderboardDefinitions.

For more information, see the EOS_Leaderboards_OnQueryLeaderboardDefinitionsCompleteCallbackInfo page.