voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)
Asks the client to accept or reject an invitation from a remote participant.
Declaration
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didReceiveInvitationFromParticipantID participantID: String, callID: Int)Parameters
- voiceChatService:
The service that received the request.
- participantID:
A string that uniquely identifies the other user.
- callID:
An integer that uniquely identifies the request.
Discussion
If this method is not implemented by the client, the voice chat service automatically accept requests from other participants.
This method should call the service’s acceptCallID(_:) method if it wants to accept the request or the denyCallID(_:) to reject it.