Packagenet.flashplusplus.Snapdragon.GameCenter
Classpublic class SDScore
InheritanceSDScore Inheritance Object

SDScore is a descriptor class. It holds information about the scores of a player in iOS Game Center.



Public Properties
 PropertyDefined By
  category : String
[read-only] A String shows the leaderboard that this score belongs to.
SDScore
  date : int
[read-only] A String shows the date and time when the score was earned.
SDScore
  formattedValue : String
[read-only] A String shows the player’s score as a localized string.
SDScore
  playerID : String
[read-only] A String shows the player identifier for the player that earned the score.
SDScore
  rank : int
[read-only] A String shows the position of the score in the results of a leaderboard search.
SDScore
  value : int
[read-only] A String shows the score earned by the player.
SDScore
Public Methods
 MethodDefined By
  
SDScore(playerID:String, category:String, date:int, value:int, formattedValue:String, rank:int)
Constructor of SDScore class.
SDScore
Property Detail
categoryproperty
category:String  [read-only]

A String shows the leaderboard that this score belongs to.


Implementation
    public function get category():String
dateproperty 
date:int  [read-only]

A String shows the date and time when the score was earned.


Implementation
    public function get date():int
formattedValueproperty 
formattedValue:String  [read-only]

A String shows the player’s score as a localized string.


Implementation
    public function get formattedValue():String
playerIDproperty 
playerID:String  [read-only]

A String shows the player identifier for the player that earned the score.


Implementation
    public function get playerID():String
rankproperty 
rank:int  [read-only]

A String shows the position of the score in the results of a leaderboard search.


Implementation
    public function get rank():int
valueproperty 
value:int  [read-only]

A String shows the score earned by the player.


Implementation
    public function get value():int
Constructor Detail
SDScore()Constructor
public function SDScore(playerID:String, category:String, date:int, value:int, formattedValue:String, rank:int)

Constructor of SDScore class.

Parameters
playerID:String — is the player identifier for the player that earned the score.
 
category:String — is the leaderboard that this score belongs to.
 
date:int — is the date and time when the score was earned.
 
value:int — is the score earned by the player.
 
formattedValue:String — is the player’s score as a localized string.
 
rank:int — is the position of the score in the results of a leaderboard search.