Instance Property

delegate

The delegate for the event handler.

Declaration

unowned(unsafe) var delegate: GKTurnBasedEventHandlerDelegate & NSObjectProtocol { get set }

Discussion

If your game implements turn-based matches, it should set the delegate immediately after the local player is successfully authenticated. You want to set the delegate immediately because your game may have been launched specifically to handle a turn-based match event.