GPGLeaderboardMetadata Class Reference

GPGLeaderboardMetadata Class Reference

Overview

The metadata for a specific leaderboard.

This object is not meant to be instantiated directly, but instead accessed through the GPGLeaderboardModel's metadata methods once the metadata has been loaded.

Static Public Member Functions

(void) + allMetadataWithCompletionHandler:
 Fetches all leaderboard metadata.
(void) + allMetadataFromDataSource:completionHandler:
 Fetches all leaderboard metadata.
(void) + metadataForLeaderboardId:completionHandler:
 Fetches the leaderboard metadata for a single leaderboardId.
(void) + metadataForLeaderboardId:dataSource:completionHandler:
 Fetches the leaderboard metadata for a single leaderboardId.

Properties

NSURL * iconUrl
 A network URL to the image for this leaderboard.
NSString * leaderboardId
 The leaderboard identifier for this metadata.
GPGLeaderboardOrder order
 How scores are ordered.
NSString * title
 The title of this leaderboard.

Member Function Documentation

+ (void) allMetadataWithCompletionHandler: (GPGLeaderboardAllMetadataBlock)  completionHandler

Fetches all leaderboard metadata.

Parameters:
completionHandlerThe resulting leaderboard metadata.
+ (void) allMetadataFromDataSource: (GPGDataSource)  dataSource
completionHandler: (GPGLeaderboardAllMetadataBlock)  completionHandler 

Fetches all leaderboard metadata.

Parameters:
dataSourceThe data source from where to load.
completionHandlerThe resulting leaderboard metadata.
+ (void) metadataForLeaderboardId: (NSString *)  leaderboardId
completionHandler: (GPGLeaderboardMetadataBlock)  completionHandler 

Fetches the leaderboard metadata for a single leaderboardId.

Parameters:
completionHandlerThe resulting leaderboard metadata.
+ (void) metadataForLeaderboardId: (NSString *)  leaderboardId
dataSource: (GPGDataSource)  dataSource
completionHandler: (GPGLeaderboardMetadataBlock)  completionHandler 

Fetches the leaderboard metadata for a single leaderboardId.

Parameters:
dataSourceThe data source from where to load.
completionHandlerThe resulting leaderboard metadata.

Property Documentation

- (NSURL *) iconUrl [read, copy]

A network URL to the image for this leaderboard.

Override URL getters to include a default size.

- (NSString*) leaderboardId [read, copy]

The leaderboard identifier for this metadata.

- (GPGLeaderboardOrder) order [read, assign]

How scores are ordered.

Possible values are: GPGLeaderboardOrderLargerIsBetter - Larger values are better; scores are sorted in descending order. GPGLeaderboardOrderSmallerIsBetter - Smaller values are better; scores are sorted in ascending order.

- (NSString*) title [read, copy]

The title of this leaderboard.

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

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