trigger(state:handler:)
Displays the Game Center dashboard in the specified state as if the player taps or presses the access point.
Declaration
func trigger(state: GKGameCenterViewControllerState, handler: @escaping () -> Void)Parameters
- state:
The type of content to present.
- handler:
The block that GameKit calls after it displays the dashboard.
Mentioned in
Discussion
For games that use controllers or the Apple TV remote, you can use this method to programmatically display the dashboard.