One Logo Pool Ball
GameKit · IOS API REFERENCE

GKMatchmakerViewController

class · iOS 4.1+ · SDK 27.1

class GKMatchmakerViewController

Members (14)

method · iOS 5.0+

addPlayers

TypeScript
addPlayers(match: GKMatch): Promise<void>
Swift declaration
func addPlayers(to match: GKMatch)
init · iOS 4.1+

init

TypeScript
static initInvite(invite: GKInvite): Promise<(GKMatchmakerViewController) | null>
Swift declaration
init?(invite: GKInvite)
init · iOS 4.1+

init

TypeScript
static initMatchRequest(request: GKMatchRequest): Promise<(GKMatchmakerViewController) | null>
Swift declaration
init?(matchRequest request: GKMatchRequest)
method · iOS 5.0+ · Deprecated in iOS 8.0

setHostedPlayer

TypeScript
setHostedPlayerConnected(playerID: string, connected: boolean): Promise<void>
Swift declaration
func setHostedPlayer(_ playerID: String, connected: Bool)
method · iOS 8.0+

setHostedPlayer

TypeScript
setHostedPlayerDidConnect(player: GKPlayer, connected: boolean): Promise<void>
Swift declaration
func setHostedPlayer(_ player: GKPlayer, didConnect connected: Bool)
get · iOS 15.0+

canStartWithMinimumPlayers

TypeScript
get canStartWithMinimumPlayers(): Promise<boolean>
Swift declaration
var canStartWithMinimumPlayers: Bool { get set }
set · iOS 15.0+

canStartWithMinimumPlayers

TypeScript
setCanStartWithMinimumPlayers(value: boolean): Promise<void>
Swift declaration
var canStartWithMinimumPlayers: Bool { get set }
get · iOS 4.1+

isHosted

TypeScript
get isHosted(): Promise<boolean>
Swift declaration
var isHosted: Bool { get set }
set · iOS 4.1+

isHosted

TypeScript
setIsHosted(value: boolean): Promise<void>
Swift declaration
var isHosted: Bool { get set }
get · iOS 4.1+

matchRequest

TypeScript
get matchRequest(): Promise<GKMatchRequest>
Swift declaration
var matchRequest: GKMatchRequest { get }
get · iOS 4.1+

matchmakerDelegate

TypeScript
get matchmakerDelegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
set · iOS 4.1+

matchmakerDelegate

TypeScript
setMatchmakerDelegate(value?: (Implements<GKMatchmakerViewControllerDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
get · iOS 14.0+

matchmakingMode

TypeScript
get matchmakingMode(): Promise<GKMatchmakingMode>
Swift declaration
var matchmakingMode: GKMatchmakingMode { get set }
set · iOS 14.0+

matchmakingMode

TypeScript
setMatchmakingMode(value: GKMatchmakingMode): Promise<void>
Swift declaration
var matchmakingMode: GKMatchmakingMode { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

GKMatchmakerViewController.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All GameKit types →