SCUI_Client_ShowChallengeCreateView()

This method requests the display of the create challenge view.

Synopsis:

#include <scoreloop/scui_client.h>
 
SC_Error_t SCUI_Client_ShowChallengeCreateView(SCUI_Client_h self)

Arguments:

self

An opaque handle for the current SCUI_Client instance.

Library:

libscoreloopcore

Description:

This method will display a view that lets the user create a new challenge.

The view is shown asynchronously and will automatically capture all user interactions over the whole screen. When the user starts a challenge, the view-result-callback will be called with a result value of SCUI_RESULT_START_CHALLENGE.

In this case, the data argument of the view-result-callback is of type SC_Challenge_h (you will have to cast it to this type). You have to start a gameplay with the configuration of the challenge and once the game play is done, call SCUI_Client_ShowChallengeSubmitView providing the same SC_Challenge_h object together with the score the user gained during the game play.

Returns:

SC_Error_t A return code (SC_OK indicates success, any other value indicates an error).

Last modified: 2013-12-23

comments powered by Disqus