Contents

voiceChatService(_:didStopWithParticipantID:error:)

Received by the client when a previously established voice chat has ended.

Declaration

optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didStopWithParticipantID participantID: String, error: (any Error)?)

Parameters

  • voiceChatService:

    The voice chat that maintained the connection.

  • participantID:

    A string that uniquely identifies the user who disconnected.

  • error:

    The error that caused the chat to end.

Discussion

Your application can implement this method to notify the user that an established voice connection has ended. This may occur when another participant ends the chat or if the network connection was lost.

See Also

Responding to Changes in Other Participants