controllerPausedHandler
The block that the framework calls when the user presses the pause button on the controller.
Declaration
var controllerPausedHandler: ((GCController) -> Void)? { get set }Discussion
Implement this handler to toggle between pausing and resuming gameplay. Provide an interface that displays when the user pauses the game, and allows the user to resume gameplay. If your game suspends gameplay for some other reason, also implement this handler to resume gameplay when it’s possible.