voiceChatService(_:didNotStartWithParticipantID:error:)
Received by the client when an attempt to establish a voice chat with another participant failed.
Declaration
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didNotStartWithParticipantID participantID: String, error: (any Error)?)Parameters
- voiceChatService:
The voice chat service that was establishing the connection.
- participantID:
A string that uniquely identifies the other user.
- error:
The error that prevented the voice chat from being established.
Discussion
Your application can implement this method to notify the user that an error occurred when establishing a connection.