Contents

rematch(completionHandler:)

Creates a new turn-based match with the same participants from an existing match.

Declaration

func rematch(completionHandler: (@Sendable (GKTurnBasedMatch?, (any Error)?) -> Void)? = nil)
func rematch() async throws -> GKTurnBasedMatch

Parameters

  • completionHandler:

    The block that GameKit calls when it completes the request.

    The block receives the following parameters:

    match

    A new match, or nil if an error occurs.

    error

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

See Also

Creating a Match