use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(GKBasePlayer, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "GKBasePlayer")]
#[deprecated]
pub struct GKCloudPlayer;
);
#[cfg(feature = "GKBasePlayer")]
extern_conformance!(
unsafe impl NSCopying for GKCloudPlayer {}
);
#[cfg(feature = "GKBasePlayer")]
unsafe impl CopyingHelper for GKCloudPlayer {
type Result = Self;
}
#[cfg(feature = "GKBasePlayer")]
extern_conformance!(
unsafe impl NSObjectProtocol for GKCloudPlayer {}
);
#[cfg(feature = "GKBasePlayer")]
impl GKCloudPlayer {
extern_methods!(
#[cfg(feature = "block2")]
#[deprecated]
#[unsafe(method(getCurrentSignedInPlayerForContainer:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn getCurrentSignedInPlayerForContainer_completionHandler(
container_name: Option<&NSString>,
handler: &block2::DynBlock<dyn Fn(*mut GKCloudPlayer, *mut NSError)>,
);
);
}
#[cfg(feature = "GKBasePlayer")]
impl GKCloudPlayer {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}