shared
TypeScriptstatic shared(): GKMatchmakerSwift declarationclass func shared() -> GKMatchmakerclass · iOS 4.1+ · SDK 27.1
class GKMatchmakerstatic shared(): GKMatchmakerSwift declarationclass func shared() -> GKMatchmakeraddPlayers(match: GKMatch, matchRequest: GKMatchRequest, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc addPlayers(to match: GKMatch, matchRequest: GKMatchRequest) async throwscancel(): voidSwift declarationfunc cancel()cancelInvite(playerID: string): voidSwift declarationfunc cancelInvite(toPlayer playerID: String)cancelPendingInvite(player: GKPlayer): voidSwift declarationfunc cancelPendingInvite(to player: GKPlayer)findMatch(request: GKMatchRequest, completionHandler?: (((arg0: (GKMatch) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc findMatch(for request: GKMatchRequest) async throws -> GKMatchfindMatchedPlayers(request: GKMatchRequest, completionHandler: ((arg0: (GKMatchedPlayers) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc findMatchedPlayers(_ request: GKMatchRequest) async throws -> GKMatchedPlayersfindPlayersForHostedMatchRequestWithCompletionHandler(request: GKMatchRequest, completionHandler?: (((arg0: (Array<string>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc findPlayers(forHostedMatchRequest request: GKMatchRequest, withCompletionHandler completionHandler: (@Sendable ([String]?, (any Error)?) -> Void)? = nil)findPlayersForHostedRequestWithCompletionHandler(request: GKMatchRequest, completionHandler?: (((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc findPlayers(forHostedRequest request: GKMatchRequest) async throws -> [GKPlayer]finishMatchmaking(match: GKMatch): voidSwift declarationfunc finishMatchmaking(for match: GKMatch)static init(): GKMatchmakerSwift declarationinit()match(invite: GKInvite, completionHandler?: (((arg0: (GKMatch) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc match(for invite: GKInvite) async throws -> GKMatchqueryActivity(completionHandler?: (((arg0: number, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc queryActivity() async throws -> IntqueryPlayerGroupActivity(playerGroup: number, completionHandler?: (((arg0: number, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc queryPlayerGroupActivity(_ playerGroup: Int) async throws -> IntqueryQueueActivity(queueName: string, completionHandler?: (((arg0: number, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc queryQueueActivity(_ queueName: String) async throws -> IntstartBrowsingForNearbyPlayersHandler(reachableHandler?: (((arg0: GKPlayer, arg1: boolean) => void)) | null): voidSwift declarationfunc startBrowsingForNearbyPlayers(handler reachableHandler: ((GKPlayer, Bool) -> Void)? = nil)startBrowsingForNearbyPlayersReachableHandler(reachableHandler?: (((arg0: string, arg1: boolean) => void)) | null): voidSwift declarationfunc startBrowsingForNearbyPlayers(reachableHandler: ((String, Bool) -> Void)? = nil)startGroupActivity(handler: ((arg0: GKPlayer) => void)): voidSwift declarationfunc startGroupActivity(playerHandler handler: @escaping (GKPlayer) -> Void)stopBrowsingForNearbyPlayers(): voidSwift declarationfunc stopBrowsingForNearbyPlayers()stopGroupActivity(): voidSwift declarationfunc stopGroupActivity()No declarations were skipped in this snapshot.