SwiftclassAppStoreKit
class AppStoreKit.GameCenter
Members 11
- func
static addContactToDenyList(_: String, for: GKLocalPlayer) -> () - func
static fetchGameInfo(for: String, on: JetEngine.TaskScheduler) -> JetEngine.Promise<GKGameInfo> - func
static fetchGameRecord(for: GKPlayer, with: String) -> JetEngine.Promise<GKGameRecord> - func
static getLocalPlayer(on: JetEngine.TaskScheduler) async -> GKLocalPlayer? - func
static inviteFriendViewController(localPlayer: GKLocalPlayer?, contactId: String?) -> JetEngine.Promise<UIViewController> - func
static sendFriendInvitationViaPush(_: AppStoreKit.GameCenter.PushFriendInvitationType, bag: AppStoreKit.ASKBagContract) async throws -> () - func
static withLocalPlayer(on: JetEngine.TaskScheduler, _: (GKLocalPlayer?) -> ()) -> () - deinit
deinit - field
let cache: AppStoreKit.GameCenterCache - func
fetchSuggestedFriends(localPlayer: GKLocalPlayer?, limitedTo: Int, on: JetEngine.TaskScheduler) -> JetEngine.Promise<[AppStoreKit.SuggestedFriend]> - init
AppStoreKit.GameCenter.__allocating_init() -> AppStoreKit.GameCenter
Header
class GameCenter: __C.NSObject { enum GameCenterError { case unabledToFetchGames(bundleIds: [Swift.String]) case unabledToFetchPlayers(playerIds: [Swift.String]) case unableToFetchAchievementsFor(player: Swift.String, game: Swift.String) case gamedError(underlyingError: (any Swift.Error)?) case noAchievementToFeature case parsingError case unableToCreateMonogram case unableToCreateFriendCodeAndSupportUrl case unableToCreateMessagesViewController case addingFriendsRestricted case notSupported case noValidLocalPlayer } enum GameCategoryFilter { case all case arcade case nonarcade } enum PushFriendInvitationType { case player(playerID: Swift.String) case contact(contactID: Swift.String, contactAssociationID: Swift.String) } let cache: AppStoreKit.GameCenterCache init() final func fetchSuggestedFriends(localPlayer: __C.GKLocalPlayer?, limitedTo: Swift.Int, on: any JetEngine.TaskScheduler) -> JetEngine.Promise<[AppStoreKit.SuggestedFriend]> static func fetchGameInfo(for: Swift.String, on: any JetEngine.TaskScheduler) -> JetEngine.Promise<__C.GKGameInfo> static func fetchGameRecord(for: __C.GKPlayer, with: Swift.String) -> JetEngine.Promise<__C.GKGameRecord> static func getLocalPlayer(on: any JetEngine.TaskScheduler) async -> __C.GKLocalPlayer? static func withLocalPlayer(on: any JetEngine.TaskScheduler, _: @escaping (_: __C.GKLocalPlayer?) -> ()) static func addContactToDenyList(_: Swift.String, for: __C.GKLocalPlayer) static func inviteFriendViewController(localPlayer: __C.GKLocalPlayer?, contactId: Swift.String?) -> JetEngine.Promise<__C.UIViewController> static func sendFriendInvitationViaPush(_: AppStoreKit.GameCenter.PushFriendInvitationType, bag: AppStoreKit.ASKBagContract) async throws deinit }