player(_:wantsToPlay:completionHandler:)
Called when a player intends to play for a specific game activity. A completion handler block is provided to indicate whether the activity was successfully handled.
Declaration
optional func player(_ player: GKPlayer, wantsToPlay activity: GKGameActivity, completionHandler: @escaping @Sendable (Bool) -> Void)optional func player(_ player: GKPlayer, wantsToPlay activity: GKGameActivity) async -> Bool