Instance Method

cancelInvite(toPlayer:)

Cancels a pending invitation to another player.

Declaration

func cancelInvite(toPlayer playerID: String)

Parameters

playerID

The player identifier for a player previously invited to the match.

See Also

Deprecated Methods and Properties

var inviteHandler: ((GKInvite, [Any]?) -> Void)?

A block to be called when an invitation to join a match is accepted by the local player.

Deprecated
func startBrowsingForNearbyPlayers(reachableHandler: ((String, Bool) -> Void)?)

Enables the matchmaking process to find nearby players through Bluetooth or WiFi (same subnet only).

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software