SC_HandleCustomEvent()

Continue processing of Scoreloop code when using SC_RUN_LOOP_TYPE_CUSTOM.

Synopsis:

#include <scoreloop/sc_init.h>
 
SC_DEPRECATED SC_PUBLISHED void SC_HandleCustomEvent(SC_InitData_t *initData, SC_Bool_t blockIfNeeded)

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

Arguments:

initData

A pointer to the init data

blockIfNeeded

Either SC_TRUE if you want this method to block or SC_FALSE otherwise

Library:

libscoreloopcore (For the qcc command, use the -l scoreloopcore option to link against this library)

Description:

You have to call this method regularly in your own run loop so that Scoreloop callbacks can be invoked when asynchronous replies come in from the servers. Your event loop should look like this:

 for (;;) {
      // Scoreloop event handling
      SC_HandleCustomEvent(&initData, SC_FALSE); // SC_FALSE will not block here, SC_TRUE will

      // Other event handling here
      ...
 }

Returns:

Last modified: 2014-06-24



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

comments powered by Disqus