objc2_ar_kit/generated/
ARAnchor.rs1use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2")]
12extern_protocol!(
13 #[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
17 pub unsafe trait ARAnchorCopying: NSCopying {
18 #[unsafe(method(initWithAnchor:))]
25 #[unsafe(method_family = init)]
26 unsafe fn initWithAnchor(this: Allocated<Self>, anchor: &ARAnchor) -> Retained<Self>;
27 }
28);
29
30#[cfg(feature = "objc2")]
31extern_protocol!(
32 #[cfg(feature = "objc2")]
36 pub unsafe trait ARTrackable: NSObjectProtocol {
37 #[unsafe(method(isTracked))]
42 #[unsafe(method_family = none)]
43 unsafe fn isTracked(&self) -> bool;
44 }
45);
46
47#[cfg(feature = "objc2")]
48extern_class!(
49 #[unsafe(super(NSObject))]
53 #[derive(Debug, PartialEq, Eq, Hash)]
54 #[cfg(feature = "objc2")]
55 pub struct ARAnchor;
56);
57
58#[cfg(feature = "objc2")]
59unsafe impl Send for ARAnchor {}
60
61#[cfg(feature = "objc2")]
62unsafe impl Sync for ARAnchor {}
63
64#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
65unsafe impl ARAnchorCopying for ARAnchor {}
66
67#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
68unsafe impl NSCoding for ARAnchor {}
69
70#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
71unsafe impl NSCopying for ARAnchor {}
72
73#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
74unsafe impl CopyingHelper for ARAnchor {
75 type Result = Self;
76}
77
78#[cfg(feature = "objc2")]
79unsafe impl NSObjectProtocol for ARAnchor {}
80
81#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
82unsafe impl NSSecureCoding for ARAnchor {}
83
84#[cfg(feature = "objc2")]
85impl ARAnchor {
86 extern_methods!(
87 #[cfg(feature = "objc2-foundation")]
88 #[unsafe(method(identifier))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn identifier(&self) -> Retained<NSUUID>;
92
93 #[cfg(feature = "objc2-foundation")]
94 #[unsafe(method(name))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn name(&self) -> Option<Retained<NSString>>;
98
99 #[cfg(feature = "objc2-foundation")]
100 #[unsafe(method(sessionIdentifier))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn sessionIdentifier(&self) -> Option<Retained<NSUUID>>;
107
108 #[unsafe(method(init))]
110 #[unsafe(method_family = init)]
111 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
112
113 #[unsafe(method(new))]
114 #[unsafe(method_family = new)]
115 pub unsafe fn new() -> Retained<Self>;
116 );
117}