GKVoiceChatClient

Trait GKVoiceChatClient 

Source
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§

Source

unsafe fn voiceChatService_sendData_toParticipantID( &self, voice_chat_service: &GKVoiceChatService, data: &NSData, participant_id: &NSString, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature 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.

Source

unsafe fn participantID(&self) -> Retained<NSString>
where Self: Sized + Message,

👎Deprecated

must be sent within some reasonble period of time and should accept at least 512 bytes.

Source

unsafe fn voiceChatService_sendRealTimeData_toParticipantID( &self, voice_chat_service: &GKVoiceChatService, data: &NSData, participant_id: &NSString, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature 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.

Source

unsafe fn voiceChatService_didStartWithParticipantID( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature GKVoiceChatService only.
Source

unsafe fn voiceChatService_didNotStartWithParticipantID_error( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, error: Option<&NSError>, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature GKVoiceChatService only.
Source

unsafe fn voiceChatService_didStopWithParticipantID_error( &self, voice_chat_service: &GKVoiceChatService, participant_id: &NSString, error: Option<&NSError>, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature GKVoiceChatService only.
Source

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 GKVoiceChatService only.

Trait Implementations§

Source§

impl ProtocolType for dyn GKVoiceChatClient

Source§

const NAME: &'static str = "GKVoiceChatClient"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn GKVoiceChatClient

Implementations on Foreign Types§

Source§

impl<T> GKVoiceChatClient for ProtocolObject<T>

Implementors§