Type Alias

GKChallengeComposeCompletionBlock

Completion block that determines if a challenge has been issued and if so, who it is sent to.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
typealias GKChallengeComposeCompletionBlock = (UIViewController, Bool, [String]?) -> Void
macOS
typealias GKChallengeComposeCompletionBlock = (NSViewController, Bool, [String]?) -> Void

Discussion

The block parameters are defined as follows:

composeController

View controller for the challenge.

didIssueChallenge

Boolean variable designating if the challenge was sent out.

sentPlayerIDs

An array of GKPlayer objects containing the player identifiers that the challenge was sent to.