API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_Challenges_GetList Function

Returns a list of challenges that match the specified options. The ovr_ChallengeOptions_Create() parameter allows you to specify the criteria for the challenges you want to retrieve. The limit parameter allows you to control the number of challenges returned. ovrMessage_Challenges_GetList will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
If no error occurred, the message will contain a payload of type ovrChallengeArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeArray().

Signature

ovrRequest ovr_Challenges_GetList(ovrChallengeOptionsHandle challengeOptions, int limit)

Parameters

challengeOptions: ovrChallengeOptionsHandle This indicates the options of the challenge and it can be retrieved by ovr_ChallengeOptions_Create().
limit: int Sets a limit on the maximum number of challenges to be fetched, which can be useful for pagination or performance reasons.

Returns