Contents

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 -> Int

Parameters

  • completionHandler:

    The block that GameKit calls when it completes the request.

    This block receives the following parameters:

    activity

    The number of match requests for all player groups during the previous 60 seconds.

    error

    Describes an error if it occurs, or nil if the operation completes.

See Also

Finding players who request matches