trigger(leaderboardID:playerScope:timeScope:handler:)
Displays the Game Center dashboard in a state that shows a specific leaderboard.
Declaration
func trigger(leaderboardID: String, playerScope: GKLeaderboard.PlayerScope, timeScope: GKLeaderboard.TimeScope, handler: (() -> Void)? = nil)Parameters
- leaderboardID:
The identifier for the leaderboard.
- playerScope:
The type of players for scoping the leaderboard data.
- timeScope:
The time period for filtering the leaderboard data.
- handler:
The block that GameKit calls after it displays the dashboard.