SC_LocalAchievementsController_Synchronize()

Synchronizes the local achievements database with the Scoreloop server.

Synopsis:

#include <scoreloop/sc_local_achievements_controller.h>
 
SC_DEPRECATED SC_PUBLISHED SC_Error_t SC_LocalAchievementsController_Synchronize(SC_LocalAchievementsController_h self)

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

Arguments:

self

SC_LocalAchievementsController instance handle

Library:

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

Description:

This method synchronizes information about achievements that is stored locally on the device with the Scoreloop server. The achievements can be updated to the server at any time. If a user updates achievements during an ongoing synchronization, the achievement will be synchronized as part of current synchronization processs.

This method should be called if:
  • the local database has never been synchronized with the Scoreloop server (i.e. on first application launch), or
  • an award has been unlocked since the last synchronization call.

Use SC_LocalAchievementsController_ShouldSynchronize() to check when this method should be called.

Note that this is an asynchronous call and a callback will be triggered.

Returns:

SC_Error_t A return code (A value of SC_OK indicates success, any other value indicates an error. For more error codes see here).

Last modified: 2014-06-24



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

comments powered by Disqus