SC_LocalAchievementsController_Synchronize()
Synchronizes the local achievements database with the Scoreloop server.
Synopsis:
#include <scoreloop/sc_local_achievements_controller.h>
SC_Error_t SC_LocalAchievementsController_Synchronize(SC_LocalAchievementsController_h self)
Arguments:
- self
-
SC_LocalAchievementsController instance handle
Library:
libscoreloopcoreDescription:
This method synchronizes information about achievements that is stored locally on the device with the Scoreloop server. 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).