Contents

declineInvite(completionHandler:)

Declines an invitation for the local player to join a turn-based match.

Declaration

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

Parameters

  • completionHandler:

    The block that GameKit calls when it completes the request.

    The block receives the following parameter:

    error

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

Mentioned in

Discussion

When you provide a custom interface for managing matches, use this method to programmatically decline an invitation on behalf of the local player.

See Also

Creating a Match