SCUI_Client_HandleEvent()

Checks if the event is Scoreloop related event.

Synopsis:

#include <scoreloop/scui_platform.h>
 
SC_DEPRECATED SC_PUBLISHED SC_Bool_t SCUI_Client_HandleEvent(SCUI_Client_h self, bps_event_t *event)

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

Arguments:

self

An opaque handle for the current SCUI_client instance.

event

The BPS event to handle

Library:

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

Description:

This method checks for Scoreloop related events from all the BPS events. Call this method in the main loop and pass the bps_events to the handler. Your event loop could look similar to the following:

 bps_event_t *event;

 // get an event
 bps_get_event(&event, -1); // blocking

 // pass events to SC_Client as before
 // (should already exists in your code, if not refer to Initialization section)
 SC_HandleBPSEvent(palInitData, event);

 // pass events to the SCUI_Client
 SCUI_Client_HandleEvent(uiClient, event);

Returns:

SC_Bool_t SC_TRUE if it was a Scoreloop-related event, SC_FALSE otherwise

Last modified: 2014-06-24



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

comments powered by Disqus