use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(CBPeer, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CBPeer")]
pub struct CBCentral;
);
#[cfg(feature = "CBPeer")]
extern_conformance!(
unsafe impl NSCopying for CBCentral {}
);
#[cfg(feature = "CBPeer")]
unsafe impl CopyingHelper for CBCentral {
type Result = Self;
}
#[cfg(feature = "CBPeer")]
extern_conformance!(
unsafe impl NSObjectProtocol for CBCentral {}
);
#[cfg(feature = "CBPeer")]
impl CBCentral {
extern_methods!(
#[unsafe(method(maximumUpdateValueLength))]
#[unsafe(method_family = none)]
pub unsafe fn maximumUpdateValueLength(&self) -> NSUInteger;
);
}
#[cfg(feature = "CBPeer")]
impl CBCentral {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "CBPeer")]
impl CBCentral {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}