iOS
Android
Unity
REST Api
BDArenaAchievementsDelegate

Availability : ver 1.0 and later

Declared in : BDArenaAchievementsDelegate.h

Sample code : -

Overview

The delegates of the BDArenaAchievements object must adopt the BDArenaAchievementsDelegate protocol in order to be notified about the results of the operations of retrieving the list of available achievements and to register the earning of achievements by the local player.

Tasks

Retrieving achievements

- arenaAchievements:loadAchievementsDidFailWithError:

- arenaAchievements:loadAchievementsSuccessfullyCompletedWithArray:

 

Reporting achievements earnings

- arenaAchievements:reportAchievementDidFailWithError:     deprecated in SDK 2.3

- arenaAchievements:reportAchievementWithId:didFailWithError:

- arenaAchievements:reportAchievementSuccessfullyCompletedWithData:

 

 


 

 

 

arenaAchievements:loadAchievementsDidFailWithError:

 

Notifies that the request for obtaining the list of the achievements did fail.

 

- (void) arenaAchievements:(BDArenaAchievements*)achievements

        loadAchievementsDidFailWithError:(NSError*)error;

 

Parameters

achievements

    The unique instance of BDArenaAchievements.

error

    An NSError object containing the specific error that occurred.

    For more information about errors, check out the Errors Map section.

 

Availability

available in SDK ver 1.0 and later

 

Declared in

BDArenaAchievementsDelegate.h

 

 

 

arenaAchievements:loadAchievementsSuccessfullyCompletedWithArray:

 

Notifies that the request for obtaining the list of the achievements did succeed.

 

- (void) arenaAchievements:(BDArenaAchievements*)achievements

        loadAchievementsSuccessfullyCompletedWithArray:(NSArray*)achievementsArray;

 

Parameters

achievements

    The unique instance of BDArenaAchievements.

achievementsArray

    An Array of BDArenaAchievementData objects containing information about the available achievements.

 

Availability

available in SDK ver 1.0 and later

 

Declared in

BDArenaAchievementsDelegate.h

 

 

 

arenaAchievements:reportAchievementDidFailWithError:

 

Reports that the registration of the new progress value for a specific achievement did fail.

 

- (void) arenaAchievements:(BDArenaAchievements*)achievements

        reportAchievementDidFailWithError:(NSError*)error;

 

Parameters

achievements

    The unique instance of BDArenaAchievements.

error

    An NSError object containing the specific error that occurred.

    For more information about errors, check out the Errors Map section.

 

Discussion

This method is deprecated. Use arenaAchievements:reportAchievementWithId:didFailWithError: instead.

 

Availability

available in SDK ver 1.0 and later

 

Declared in

BDArenaAchievementsDelegate.h

 

 

 

arenaAchievements:reportAchievementWithId:didFailWithError:

 

Reports that the registration of the new progress value for a specific achievement did fail.

 

- (void) arenaAchievements:(BDArenaAchievements*)achievements

        reportAchievementWithId:(NSInteger)achievementId

        didFailWithError:(NSError*)error;

 

Parameters

achievements

    The unique instance of BDArenaAchievements.

achievementId

    The unique achievement identifier

error

    An NSError object containing the specific error that occurred.

    For more information about errors, check out the Errors Map section.

 

Availability

available in SDK ver 2.3 and later

 

Declared in

BDArenaAchievementsDelegate.h

 

 

 

arenaAchievements:reportAchievementSuccessfullyCompletedWithData:

 

Reports that the registration of the new progress value for a specific achievement did succeed.

 

- (void) arenaAchievements:(BDArenaAchievements*)achievements

        reportAchievementSuccessfullyCompletedWithData:

        (BDArenaAchievementData*)achievementData;

 

Parameters

achievements

    The unique instance of BDArenaAchievements.

achievementData

    A BDArenaAchievementData object filled with the information of the requested achievement.

 

Availability

available in SDK ver 1.0 and later

 

Declared in

BDArenaAchievementsDelegate.h