Interface GKVoiceChatClient


  • public interface GKVoiceChatClient
    All clients will need to implement this protocol
    • Method Detail

      • participantID

        java.lang.String participantID()
        must be sent within some reasonble period of time and should accept at least 512 bytes.
      • voiceChatServiceDidNotStartWithParticipantIDError

        default void voiceChatServiceDidNotStartWithParticipantIDError​(GKVoiceChatService voiceChatService,
                                                                       java.lang.String participantID,
                                                                       NSError error)
      • voiceChatServiceDidReceiveInvitationFromParticipantIDCallID

        default void voiceChatServiceDidReceiveInvitationFromParticipantIDCallID​(GKVoiceChatService voiceChatService,
                                                                                 java.lang.String participantID,
                                                                                 long callID)
      • voiceChatServiceDidStartWithParticipantID

        default void voiceChatServiceDidStartWithParticipantID​(GKVoiceChatService voiceChatService,
                                                               java.lang.String participantID)
      • voiceChatServiceDidStopWithParticipantIDError

        default void voiceChatServiceDidStopWithParticipantIDError​(GKVoiceChatService voiceChatService,
                                                                   java.lang.String participantID,
                                                                   NSError error)
      • voiceChatServiceSendDataToParticipantID

        void voiceChatServiceSendDataToParticipantID​(GKVoiceChatService voiceChatService,
                                                     NSData data,
                                                     java.lang.String participantID)
        this channel will only be used to setup voice chat, and not to send audio data. The only requirement is that messages are sent and received within a few (1-2) seconds time.
      • voiceChatServiceSendRealTimeDataToParticipantID

        default void voiceChatServiceSendRealTimeDataToParticipantID​(GKVoiceChatService voiceChatService,
                                                                     NSData data,
                                                                     java.lang.String participantID)
        should be sent immediately with no delay on a UDP peer-to-peer connection. If this method is implemented, then the Voice Chat Service will not attempt to set up a peer-to-peer connection. And will rely on this one. To transmit audio.