SCUI_Client_SetViewEventCallback()

Function to set optional event callback.

Synopsis:

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

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

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 (For the qcc command, use the -l scoreloopcore option to link against this library)

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: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus