use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_protocol!(
#[deprecated]
pub unsafe trait GKSessionDelegate: NSObjectProtocol {
#[cfg(all(feature = "GKPublicConstants", feature = "GKSession"))]
#[deprecated]
#[optional]
#[unsafe(method(session:peer:didChangeState:))]
#[unsafe(method_family = none)]
unsafe fn session_peer_didChangeState(
&self,
session: &GKSession,
peer_id: &NSString,
state: GKPeerConnectionState,
);
#[cfg(feature = "GKSession")]
#[deprecated]
#[optional]
#[unsafe(method(session:didReceiveConnectionRequestFromPeer:))]
#[unsafe(method_family = none)]
unsafe fn session_didReceiveConnectionRequestFromPeer(
&self,
session: &GKSession,
peer_id: &NSString,
);
#[cfg(feature = "GKSession")]
#[deprecated]
#[optional]
#[unsafe(method(session:connectionWithPeerFailed:withError:))]
#[unsafe(method_family = none)]
unsafe fn session_connectionWithPeerFailed_withError(
&self,
session: &GKSession,
peer_id: &NSString,
error: &NSError,
);
#[cfg(feature = "GKSession")]
#[deprecated]
#[optional]
#[unsafe(method(session:didFailWithError:))]
#[unsafe(method_family = none)]
unsafe fn session_didFailWithError(&self, session: &GKSession, error: &NSError);
}
);
extern_protocol!(
#[deprecated]
pub unsafe trait GKVoiceChatClient: NSObjectProtocol {
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[unsafe(method(voiceChatService:sendData:toParticipantID:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_sendData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
);
#[deprecated]
#[unsafe(method(participantID))]
#[unsafe(method_family = none)]
unsafe fn participantID(&self) -> Retained<NSString>;
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[optional]
#[unsafe(method(voiceChatService:sendRealTimeData:toParticipantID:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_sendRealTimeData_toParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
data: &NSData,
participant_id: &NSString,
);
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[optional]
#[unsafe(method(voiceChatService:didStartWithParticipantID:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_didStartWithParticipantID(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
);
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[optional]
#[unsafe(method(voiceChatService:didNotStartWithParticipantID:error:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_didNotStartWithParticipantID_error(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
error: Option<&NSError>,
);
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[optional]
#[unsafe(method(voiceChatService:didStopWithParticipantID:error:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_didStopWithParticipantID_error(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
error: Option<&NSError>,
);
#[cfg(feature = "GKVoiceChatService")]
#[deprecated]
#[optional]
#[unsafe(method(voiceChatService:didReceiveInvitationFromParticipantID:callID:))]
#[unsafe(method_family = none)]
unsafe fn voiceChatService_didReceiveInvitationFromParticipantID_callID(
&self,
voice_chat_service: &GKVoiceChatService,
participant_id: &NSString,
call_id: NSInteger,
);
}
);