Contents

voiceChatService(_:send:toParticipantID:)

A request for the client to send data to a participant.

Declaration

func voiceChatService(_ voiceChatService: GKVoiceChatService, send data: Data, toParticipantID participantID: String)

Parameters

  • voiceChatService:

    The service that requested the transmission.

  • data:

    The data to send.

  • participantID:

    A string that uniquely identifies the participant to send the data to.

Discussion

An implementation of this method must reliably transmit the data to the participant identified by participantID. When the client on the other end receives the data, it should forward it to the voice chat service by calling the service’s receivedData(_:fromParticipantID:) method.

See Also

Sending data to other participants