Contents

trigger(handler:)

Displays the Game Center dashboard as if the player taps or presses the access point.

Declaration

func trigger(handler: @escaping () -> Void)

Parameters

  • handler:

    The block that GameKit calls after it displays the dashboard.

Discussion

For games that use controllers or the Apple TV remote, you can use this method to programmatically display the dashboard.

See Also

Managing the access point