SC_LocalAchievementsController_SetAchievedValueForAwardIdentifier()

This method sets the status of the given award as being "achieved".

Synopsis:

#include <scoreloop/sc_local_achievements_controller.h>
 
SC_DEPRECATED SC_PUBLISHED SC_Error_t SC_LocalAchievementsController_SetAchievedValueForAwardIdentifier(SC_LocalAchievementsController_h self, const char *awardIdentifier, SC_Bool_t *pGetAchieved)

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

Arguments:

self

SC_LocalAchievementsController instance handle

awardIdentifier

The unique identifier for the award, (chosen by the developer).

pGetAchieved

Returns SC_TRUE if the status of the award has been successfully set to achieved, otherwise SC_FALSE.

Library:

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

Description:

This method:
  • sets the value of the award equal to its achievingValue
  • sets the achieved property of the award equal to SC_TRUE

Returns:

SC_Error_t A return code (A value of SC_OK indicates success, any other value indicates an error).

Last modified: 2014-09-29



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

comments powered by Disqus