Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
GameKit.Score.GetContext
Queries context.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
GameKit
|
8.5 |
✅ Yes
|
❌ No
|
❌ No
|
❌ No
|
✅ Yes
|
MBS( "GameKit.Score.GetContext"; ScoreIdentifier )
More
MBS(
"GameKit.Score.GetContext"; /* Queries context. */
$ScoreIdentifier) /* The identifier for the score object. */
Less
Parameters
Parameter |
Description |
Example |
ScoreIdentifier |
The identifier for the score object. |
|
Result
Returns number or error.
Description
Queries context.
An integer value used by your game.
The context property is stored and returned to your game, but is otherwise ignored by Game Center. It allows your game to associate an arbitrary 64-bit unsigned integer value with the score data reported to Game Center. You decide how this integer value is interpreted by your game. For example, you might use the context property to store flags that provide game-specific details about a player’s score, or you might use the context as a key to other data stored on the device or on your own server. The context is most useful when your game displays a custom leaderboard user interface.
See also
Created 5th November 2018, last changed 8th November 2018
GameKit.Score.FormattedValue
-
GameKit.Score.GetShouldSetDefaultLeaderboard
Feedback: Report problem or ask question.