Package apple.gamekit.protocol
Interface GKVoiceChatClient
-
public interface GKVoiceChatClientAll clients will need to implement this protocol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringparticipantID()must be sent within some reasonble period of time and should accept at least 512 bytes.default voidvoiceChatServiceDidNotStartWithParticipantIDError(GKVoiceChatService voiceChatService, java.lang.String participantID, NSError error)default voidvoiceChatServiceDidReceiveInvitationFromParticipantIDCallID(GKVoiceChatService voiceChatService, java.lang.String participantID, long callID)default voidvoiceChatServiceDidStartWithParticipantID(GKVoiceChatService voiceChatService, java.lang.String participantID)default voidvoiceChatServiceDidStopWithParticipantIDError(GKVoiceChatService voiceChatService, java.lang.String participantID, NSError error)voidvoiceChatServiceSendDataToParticipantID(GKVoiceChatService voiceChatService, NSData data, java.lang.String participantID)this channel will only be used to setup voice chat, and not to send audio data.default voidvoiceChatServiceSendRealTimeDataToParticipantID(GKVoiceChatService voiceChatService, NSData data, java.lang.String participantID)should be sent immediately with no delay on a UDP peer-to-peer connection.
-
-
-
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.
-
-