// // GKGameSessionSharingViewController.h // Game Center // // Copyright 2016-2023 Apple Inc. All rights reserved. // #import #if TARGET_OS_TV #import // UIViewController @class GKGameSession; @protocol GKGameSessionSharingViewControllerDelegate; NS_ASSUME_NONNULL_BEGIN API_DEPRECATED("For real-time matches, use GKMatchmakerViewController. For turn-based matches, use GKTurnBasedMatchmakerViewController.", tvos(10.0, 12.0)) @interface GKGameSessionSharingViewController : UIViewController @property (nonatomic, readonly, strong) GKGameSession *session; @property (nonatomic, weak, nullable) id delegate; - (instancetype)initWithSession:(GKGameSession *)session; @end API_DEPRECATED("For real-time matches, use GKMatchmakerViewControllerDelegate to receive notifications from the GKMatchmakerViewController. For turn-based matches, use GKTurnBasedMatchmakerViewControllerDelegate and GKLocalPlayerListener to receive notifications from the GKTurnBasedMatchmakerViewController.", tvos(10.0, 12.0)) @protocol GKGameSessionSharingViewControllerDelegate - (void)sharingViewController:(GKGameSessionSharingViewController *)viewController didFinishWithError:(NSError * __nullable)error; @end NS_ASSUME_NONNULL_END #endif