find
TypeScriptstatic find(request: GKMatchRequest, completionHandler: ((arg0: (GKTurnBasedMatch) | null, arg1: (NativeError) | null) => void)): voidSwift declarationclass func find(for request: GKMatchRequest) async throws -> GKTurnBasedMatchclass · iOS 5.0+ · SDK 27.1
class GKTurnBasedMatchstatic find(request: GKMatchRequest, completionHandler: ((arg0: (GKTurnBasedMatch) | null, arg1: (NativeError) | null) => void)): voidSwift declarationclass func find(for request: GKMatchRequest) async throws -> GKTurnBasedMatchstatic load(matchID: string, completionHandler?: (((arg0: (GKTurnBasedMatch) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationclass func load(withID matchID: String) async throws -> GKTurnBasedMatchstatic loadMatches(completionHandler?: (((arg0: (Array<GKTurnBasedMatch>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationclass func loadMatches() async throws -> [GKTurnBasedMatch]acceptInvite(completionHandler?: (((arg0: (GKTurnBasedMatch) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc acceptInvite() async throws -> GKTurnBasedMatchdeclineInvite(completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc declineInvite() async throwsendMatchInTurnWithMatchCompletionHandler(matchData: ArrayBuffer, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc endMatchInTurn(withMatch matchData: Data) async throwsendMatchInTurnWithMatchLeaderboardScoresAchievementsCompletionHandler(matchData: ArrayBuffer, scores: Array<GKLeaderboardScore>, achievements: Array<unknown>, completionHandler: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc endMatchInTurn(withMatch matchData: Data, leaderboardScores scores: [GKLeaderboardScore], achievements: [Any]) async throwsendMatchInTurnWithMatchScoresAchievementsCompletionHandler(matchData: ArrayBuffer, scores?: (Array<GKScore>) | null, achievements?: (Array<GKAchievement>) | null, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc endMatchInTurn(withMatch matchData: Data, scores: [GKScore]?, achievements: [GKAchievement]?) async throwsendTurn(nextParticipants: Array<GKTurnBasedParticipant>, timeout: number, matchData: ArrayBuffer, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc endTurn(withNextParticipants nextParticipants: [GKTurnBasedParticipant], turnTimeout timeout: TimeInterval, match matchData: Data) async throwsstatic init(): GKTurnBasedMatchSwift declarationinit()loadMatchData(completionHandler?: (((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadMatchData() async throws -> Data?participantQuitInTurn(matchOutcome: GKTurnBasedMatch_Outcome, nextParticipants: Array<GKTurnBasedParticipant>, timeout: number, matchData: ArrayBuffer, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc participantQuitInTurn(with matchOutcome: GKTurnBasedMatch.Outcome, nextParticipants: [GKTurnBasedParticipant], turnTimeout timeout: TimeInterval, match matchData: Data) async throwsparticipantQuitOutOfTurn(matchOutcome: GKTurnBasedMatch_Outcome, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc participantQuitOutOfTurn(with matchOutcome: GKTurnBasedMatch.Outcome) async throwsrematch(completionHandler?: (((arg0: (GKTurnBasedMatch) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc rematch() async throws -> GKTurnBasedMatchremove(completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc remove() async throwssaveCurrentTurn(matchData: ArrayBuffer, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc saveCurrentTurn(withMatch matchData: Data) async throwssaveMergedMatch(matchData: ArrayBuffer, exchanges: Array<GKTurnBasedExchange>, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc saveMergedMatch(_ matchData: Data, withResolvedExchanges exchanges: [GKTurnBasedExchange]) async throwssendExchange(participants: Array<GKTurnBasedParticipant>, data: ArrayBuffer, key: string, arguments_: Array<string>, timeout: number, completionHandler?: (((arg0: (GKTurnBasedExchange) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc sendExchange(to participants: [GKTurnBasedParticipant], data: Data, localizableMessageKey key: String, arguments: [String], timeout: TimeInterval) async throws -> GKTurnBasedExchangesendReminder(participants: Array<GKTurnBasedParticipant>, key: string, arguments_: Array<string>, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc sendReminder(to participants: [GKTurnBasedParticipant], localizableMessageKey key: String, arguments: [String]) async throwssetLocalizableMessageWithKey(key: string, arguments_?: (Array<string>) | null): voidSwift declarationfunc setLocalizableMessageWithKey(_ key: String, arguments: [String]?)get activeExchanges(): (Array<GKTurnBasedExchange>) | nullSwift declarationvar activeExchanges: [GKTurnBasedExchange]? { get }get completedExchanges(): (Array<GKTurnBasedExchange>) | nullSwift declarationvar completedExchanges: [GKTurnBasedExchange]? { get }get creationDate(): globalThis.DateSwift declarationvar creationDate: Date { get }get currentParticipant(): (GKTurnBasedParticipant) | nullSwift declarationvar currentParticipant: GKTurnBasedParticipant? { get }get exchangeDataMaximumSize(): numberSwift declarationvar exchangeDataMaximumSize: Int { get }get exchangeMaxInitiatedExchangesPerPlayer(): numberSwift declarationvar exchangeMaxInitiatedExchangesPerPlayer: Int { get }get exchanges(): (Array<GKTurnBasedExchange>) | nullSwift declarationvar exchanges: [GKTurnBasedExchange]? { get }get matchData(): (ArrayBuffer) | nullSwift declarationvar matchData: Data? { get }get matchDataMaximumSize(): numberSwift declarationvar matchDataMaximumSize: Int { get }get matchID(): stringSwift declarationvar matchID: String { get }get message(): (string) | nullSwift declarationvar message: String? { get set }set message(value: (string) | null)Swift declarationvar message: String? { get set }get participants(): Array<GKTurnBasedParticipant>Swift declarationvar participants: [GKTurnBasedParticipant] { get }get status(): GKTurnBasedMatch_StatusSwift declarationvar status: GKTurnBasedMatch.Status { get }No declarations were skipped in this snapshot.