pub unsafe trait GKVoiceChatClient: NSObjectProtocol {
// Provided methods
unsafe fn voiceChatService_sendData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
)
where Self: Sized + Message { ... }
unsafe fn participantID(&self) -> Retained<NSString>
where Self: Sized + Message { ... }
unsafe fn voiceChatService_sendRealTimeData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
)
where Self: Sized + Message { ... }
unsafe fn voiceChatService_didStartWithParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
)
where Self: Sized + Message { ... }
unsafe fn voiceChatService_didNotStartWithParticipantID_error(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn voiceChatService_didStopWithParticipantID_error(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn voiceChatService_didReceiveInvitationFromParticipantID_callID(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
call_id: NSInteger,
)
where Self: Sized + Message { ... }
}👎Deprecated
Available on crate feature
GKPublicProtocols only.Expand description
Provided Methods§
Sourceunsafe fn voiceChatService_sendData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
)
👎DeprecatedAvailable on crate feature GKVoiceChatService only.
unsafe fn voiceChatService_sendData_toParticipantID( &self, voice_chat_service: &GKVoiceChatService, data: &NSData, participant_id: &NSString, )
GKVoiceChatService only.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.
Sourceunsafe fn participantID(&self) -> Retained<NSString>
👎Deprecated
unsafe fn participantID(&self) -> Retained<NSString>
must be sent within some reasonble period of time and should accept at least 512 bytes.
Sourceunsafe fn voiceChatService_sendRealTimeData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
)
👎DeprecatedAvailable on crate feature GKVoiceChatService only.
unsafe fn voiceChatService_sendRealTimeData_toParticipantID( &self, voice_chat_service: &GKVoiceChatService, data: &NSData, participant_id: &NSString, )
GKVoiceChatService only.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.
unsafe fn voiceChatService_didStartWithParticipantID( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, )
👎Deprecated
Available on crate feature
GKVoiceChatService only.unsafe fn voiceChatService_didNotStartWithParticipantID_error( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, error: Option<&NSError>, )
👎Deprecated
Available on crate feature
GKVoiceChatService only.unsafe fn voiceChatService_didStopWithParticipantID_error( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, error: Option<&NSError>, )
👎Deprecated
Available on crate feature
GKVoiceChatService only.unsafe fn voiceChatService_didReceiveInvitationFromParticipantID_callID( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, call_id: NSInteger, )
👎Deprecated
Available on crate feature
GKVoiceChatService only.