queryActivity(completionHandler:)
Finds the number of players, across player groups, who recently requested a match.
Declaration
func queryActivity(completionHandler: (@Sendable (Int, (any Error)?) -> Void)? = nil)func queryActivity() async throws -> IntParameters
- completionHandler:
The block that GameKit calls when it completes the request.
This block receives the following parameters:
activityThe number of match requests for all player groups during the previous 60 seconds.
errorDescribes an error if it occurs, or
nilif the operation completes.