The period of time to which a player’s best score is restricted.
SDKs
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Game
Kit
Declaration
typedef enum GKLeaderboardTimeScope : NSInteger {
...
} GKLeaderboardTimeScope;
The period of time to which a player’s best score is restricted.
SDKs
Framework
typedef enum GKLeaderboardTimeScope : NSInteger {
...
} GKLeaderboardTimeScope;
GKLeaderboard Time Scope Today
Each player is restricted to scores recorded in the past 24 hours.
GKLeaderboard Time Scope Week
Each player is restricted to scores recorded in the past week.
GKLeaderboard Time Scope All Time
Each player’s best score is returned.
player Scope
A filter used to restrict the search to a subset of the players on Game Center.
GKLeaderboard Player Scope
The scope of players to be searched for scores.
range
The numerical score rankings to return from the search.
time Scope
A filter used to restrict the search to scores that were posted within a specific period of time.
identifier
The named leaderboard to retrieve information from.
- load Image With Completion Handler:
The image associated with the default leaderboard.