GPGAchievementModel Class Reference

GPGAchievementModel Class Reference

Overview

The achievements model.

Not meant to be directly instantiated. Access this object through [GPGManager sharedInstance].applicationModel.achievement.

This model stores the metadata for every achievement registered with your application. The metadata is refreshed when the application starts and when the user initiates a refresh from the GPGApplicationController.

Public Member Functions

Accessing Metadata
(NSArray *) - allMetadata
 Array of GPGAchievementMetadata objects.
(GPGAchievementMetadata *) - metadataForAchievementId:
 Retrieve metadata for a specific achievement identifier.

Member Function Documentation

- (NSArray *) allMetadata

Array of GPGAchievementMetadata objects.

Returns all of the most up-to-date local metadata. This metadata may represent information that has yet to be synced with the server.

This will not return anything until GPGModelAllAchievementMetadataKey has been loaded.

See the GPGKeyedModel documentation for more information on loading data.

Returns:
An array of GPGAchievementMetadata objects. GPGAchievementMetadata objects
- (GPGAchievementMetadata *) metadataForAchievementId: (NSString *)  achievementId

Retrieve metadata for a specific achievement identifier.

Parameters:
achievementIdthe achievement identifier.
Returns:
A metadata object for the given achievement identifier, if the information exists, nil otherwise.

Оставить отзыв о...

Текущей странице
Play Games Services for iOS
Play Games Services for iOS