use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MCPeerID;
unsafe impl ClassType for MCPeerID {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for MCPeerID {}
unsafe impl NSCopying for MCPeerID {}
unsafe impl NSObjectProtocol for MCPeerID {}
unsafe impl NSSecureCoding for MCPeerID {}
extern_methods!(
unsafe impl MCPeerID {
#[method_id(@__retain_semantics Init initWithDisplayName:)]
pub unsafe fn initWithDisplayName(
this: Allocated<Self>,
my_display_name: &NSString,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other displayName)]
pub unsafe fn displayName(&self) -> Retained<NSString>;
}
);
extern_methods!(
unsafe impl MCPeerID {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);