Cross Platform Native Plugins
A true cross platform tool for Unity which provides unique and unified way to access native functionality on mobile platforms.
Public Member Functions | Properties | List of all members
Score Class Reference

Represents an object that holds information for a score that was earned by the user. More...

Public Member Functions

delegate void ReportScoreCompletion (bool _success, string _error)
 Delegate that will be called when score is reported. More...
 
virtual void ReportScore (ReportScoreCompletion _onCompletion)
 Reports the score to game server. More...
 

Properties

string LeaderboardGlobalID [get, protected set]
 An unified string internally used to identify the leaderboard across all the supported platforms. (read-only) More...
 
abstract string LeaderboardID [get, protected set]
 A string used to identify the leaderboard in the current platform. (read-only) More...
 
abstract User User [get, protected set]
 The user that earned the score. (read-only) More...
 
abstract long Value [get, set]
 The score earned by the user. More...
 
abstract DateTime Date [get, protected set]
 The date and time when score was earned. (read-only) More...
 
virtual string FormattedValue [get]
 The user’s score as a localized string. (read-only) More...
 
abstract int Rank [get, protected set]
 The position of the score in leaderboard. (read-only) More...
 

Detailed Description

Represents an object that holds information for a score that was earned by the user.

Note
Your game must authenticate the local user before using any features.

Member Function Documentation

delegate void ReportScoreCompletion ( bool  _success,
string  _error 
)

Delegate that will be called when score is reported.

Parameters
_successA bool value used to indicate operation status.
_errorIf the operation was successful, this value is nil; otherwise, this parameter holds the description of the problem that occurred.
virtual void ReportScore ( ReportScoreCompletion  _onCompletion)
virtual

Reports the score to game server.

Parameters
_onCompletionCallback that will be called after operation is completed.

Property Documentation

string LeaderboardGlobalID
getprotected set

An unified string internally used to identify the leaderboard across all the supported platforms. (read-only)

abstract string LeaderboardID
getprotected set

A string used to identify the leaderboard in the current platform. (read-only)

abstract User User
getprotected set

The user that earned the score. (read-only)

abstract long Value
getset

The score earned by the user.

abstract DateTime Date
getprotected set

The date and time when score was earned. (read-only)

virtual string FormattedValue
get

The user’s score as a localized string. (read-only)

abstract int Rank
getprotected set

The position of the score in leaderboard. (read-only)