loadFriendsAuthorizationStatus(_:)
Returns whether the player authorizes your game to access their friends list.
Declaration
func loadFriendsAuthorizationStatus(_ completionHandler: @escaping @Sendable (GKFriendsAuthorizationStatus, (any Error)?) -> Void)func loadFriendsAuthorizationStatus() async throws -> GKFriendsAuthorizationStatusParameters
- completionHandler:
The block that GameKit calls when it completes the request.
The block receives the following parameters:
authorizationStatusA status that indicates if the player authorized or denied your game access to their friends list.
errorDescribes an error if it occurs, or
nilif the operation completes.
An error occurs if you don’t add the Nsgkfriendlistusagedescription key to the information property list file.