local
TypeScriptstatic get local(): GKLocalPlayerSwift declarationclass var local: GKLocalPlayer { get }class · iOS 4.1+ · SDK 27.1
class GKLocalPlayerstatic get local(): GKLocalPlayerSwift declarationclass var local: GKLocalPlayer { get }deleteSavedGames(name: string, handler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc deleteSavedGames(withName name: String) async throwsfetchItems(completionHandler?: (((arg0: (string) | null, arg1: (ArrayBuffer) | null, arg2: (ArrayBuffer) | null, arg3: number, arg4: (NativeError) | null) => void)) | null): voidSwift declarationfunc fetchItemsForIdentityVerificationSignature() async throws -> (URL, Data, Data, UInt64)fetchSavedGames(handler?: (((arg0: (Array<GKSavedGame>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc fetchSavedGames() async throws -> [GKSavedGame]generateIdentityVerificationSignature(completionHandler?: (((arg0: (string) | null, arg1: (ArrayBuffer) | null, arg2: (ArrayBuffer) | null, arg3: number, arg4: (NativeError) | null) => void)) | null): voidSwift declarationfunc generateIdentityVerificationSignature() async throws -> (URL, Data, Data, UInt64)static init(): GKLocalPlayerSwift declarationinit()loadChallengableFriends(completionHandler?: (((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadChallengableFriends() async throws -> [GKPlayer]loadDefaultLeaderboardIdentifier(completionHandler?: (((arg0: (string) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadDefaultLeaderboardIdentifier() async throws -> StringloadFriendPlayers(completionHandler?: (((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadFriendPlayers(completionHandler: (@Sendable ([GKPlayer]?, (any Error)?) -> Void)? = nil)loadFriends(completionHandler: ((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadFriends() async throws -> [GKPlayer]loadFriendsAuthorizationStatus(completionHandler: ((arg0: GKFriendsAuthorizationStatus, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadFriendsAuthorizationStatus() async throws -> GKFriendsAuthorizationStatusloadFriendsObsoleted(completionHandler?: (((arg0: (Array<string>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadFriendsObsoleted(completionHandler: (@Sendable ([String]?, (any Error)?) -> Void)? = nil)loadFriendsIdentifiedByCompletionHandler(identifiers: Array<string>, completionHandler: ((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadFriends(identifiedBy identifiers: [String]) async throws -> [GKPlayer]loadRecentPlayers(completionHandler?: (((arg0: (Array<GKPlayer>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadRecentPlayers() async throws -> [GKPlayer]presentFriendRequestCreator(viewController: _UIKit_UIViewController): voidSwift declarationfunc presentFriendRequestCreator(from viewController: UIViewController) throwsregister(listener: SDKHandle): voidSwift declarationfunc register(_ listener: any GKLocalPlayerListener)resolveConflictingSavedGames(conflictingSavedGames: Array<GKSavedGame>, data: ArrayBuffer, handler?: (((arg0: (Array<GKSavedGame>) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc resolveConflictingSavedGames(_ conflictingSavedGames: [GKSavedGame], with data: Data) async throws -> [GKSavedGame]saveGameData(data: ArrayBuffer, name: string, handler?: (((arg0: (GKSavedGame) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc saveGameData(_ data: Data, withName name: String) async throws -> GKSavedGamesetDefaultLeaderboardIdentifier(leaderboardIdentifier: string, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc setDefaultLeaderboardIdentifier(_ leaderboardIdentifier: String) async throwsunregisterAllListeners(): voidSwift declarationfunc unregisterAllListeners()unregisterListener(listener: SDKHandle): voidSwift declarationfunc unregisterListener(_ listener: any GKLocalPlayerListener)get authenticateHandler(): (((arg0: (_UIKit_UIViewController) | null, arg1: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar authenticateHandler: ((UIViewController?, (any Error)?) -> Void)? { get set }set authenticateHandler(value: (((arg0: (_UIKit_UIViewController) | null, arg1: (NativeError) | null) => void)) | null)Swift declarationvar authenticateHandler: ((UIViewController?, (any Error)?) -> Void)? { get set }get isAuthenticated(): booleanSwift declarationvar isAuthenticated: Bool { get }get friends(): (Array<string>) | nullSwift declarationvar friends: [String]? { get }get isPresentingFriendRequestViewController(): booleanSwift declarationvar isPresentingFriendRequestViewController: Bool { get }get isMultiplayerGamingRestricted(): booleanSwift declarationvar isMultiplayerGamingRestricted: Bool { get }get isPersonalizedCommunicationRestricted(): booleanSwift declarationvar isPersonalizedCommunicationRestricted: Bool { get }get isUnderage(): booleanSwift declarationvar isUnderage: Bool { get }No declarations were skipped in this snapshot.