Type Alias

GKChallengeComposeCompletionBlock

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

Declaration

iOS, tvOS, watchOS
typedef void (^GKChallengeComposeCompletionBlock)(UIViewController *composeController, BOOL didIssueChallenge, NSArray<NSString *> *sentPlayerIDs);
macOS
typedef void (^GKChallengeComposeCompletionBlock)(NSViewController *composeController, BOOL didIssueChallenge, NSArray<NSString *> *sentPlayerIDs);

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.