Possible values for the view
property.
SDKs
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Game
Kit
Declaration
enum GKGameCenterViewControllerState : Int
Possible values for the view
property.
SDKs
Framework
enum GKGameCenterViewControllerState : Int
case `default`
Indicates that the view controller should present the default screen.
case leaderboards
Indicates that the view controller presents leaderboard content. The leaderboard
and leaderboard
properties affect the appearance of this view state.
case achievements
Indicates that the view controller presents achievements content.
case challenges
Indicates that the view controller presents challenges content.
var view State: GKGame Center View Controller State
The content displayed by the Game Center controller.
var leaderboard Identifier: String?
The named leaderboard that is displayed by the view controller.
var leaderboard Category: String?
The named leaderboard that is displayed by the view controller.
var leaderboard Time Scope: GKLeaderboard .Time Scope
A time filter used to restrict which scores are displayed to the player.