SCUI_Client_SetViewEventCallback()

Function to set optional event callback.

Synopsis:

#include <scoreloop/scui_client.h>
 
SC_Error_t SCUI_Client_SetViewEventCallback(SCUI_Client_h self, SC_RequestControllerCompletionCallback_t callback, void *cookie)

Arguments:

self

An opaque handle for the current SCUI_Client instance.

callback

Callback for view event notifications.

cookie

The cookie passed to the callback.

Library:

libscoreloopcore

Description:

This function set the optional event callback. The Default UI calls the callback only once, just before showing the view. This callback can be used hide spinners or handle any Scoreloop-related errors that might occur. Errors might be a part of some precondition checks e.g., a valid network connectivity, Scoreloop authentication, etc.

Returns:

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

Last modified: 2013-12-21

comments powered by Disqus