Contents

challengeComposeController(withMessage:players:completion:)

Provides a challenge compose view controller with preselected player identifiers and a preformatted, player-editable message.

Declaration

func challengeComposeController(withMessage message: String?, players: [GKPlayer]?, completion completionHandler: GKChallengeComposeHandler? = nil) -> UIViewController
func challengeComposeController(withMessage message: String?, players: [GKPlayer]?, completion completionHandler: GKChallengeComposeHandler? = nil) -> NSViewController

Parameters

  • message:

    The challenge that GameKit sends to other players.

  • players:

    The players to invite to the challenge.

  • completionHandler:

    A block that GameKit calls after it displays the view controller.

See Also

Issuing a Score Challenge