objc2_ar_kit/generated/
ARParticipantAnchor.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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_class!(
13    /// This anchor represents the physical position and orientation of another participant in the collaborative session.
14    ///
15    ///
16    /// The participant anchors are automatically added to the ARSession and are updated with each frame.
17    /// The participant can be identified by `sessionIdentifier` property of the anchor.
18    ///
19    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arparticipantanchor?language=objc)
20    #[unsafe(super(ARAnchor, NSObject))]
21    #[derive(Debug, PartialEq, Eq, Hash)]
22    #[cfg(all(feature = "ARAnchor", feature = "objc2"))]
23    pub struct ARParticipantAnchor;
24);
25
26#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
27unsafe impl Send for ARParticipantAnchor {}
28
29#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
30unsafe impl Sync for ARParticipantAnchor {}
31
32#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
33extern_conformance!(
34    unsafe impl ARAnchorCopying for ARParticipantAnchor {}
35);
36
37#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
38extern_conformance!(
39    unsafe impl NSCoding for ARParticipantAnchor {}
40);
41
42#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
43extern_conformance!(
44    unsafe impl NSCopying for ARParticipantAnchor {}
45);
46
47#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
48unsafe impl CopyingHelper for ARParticipantAnchor {
49    type Result = Self;
50}
51
52#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
53extern_conformance!(
54    unsafe impl NSObjectProtocol for ARParticipantAnchor {}
55);
56
57#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
58extern_conformance!(
59    unsafe impl NSSecureCoding for ARParticipantAnchor {}
60);
61
62#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
63impl ARParticipantAnchor {
64    extern_methods!();
65}
66
67/// Methods declared on superclass `ARAnchor`.
68#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
69impl ARParticipantAnchor {
70    extern_methods!(
71        /// Unavailable
72        #[unsafe(method(init))]
73        #[unsafe(method_family = init)]
74        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75
76        #[unsafe(method(new))]
77        #[unsafe(method_family = new)]
78        pub unsafe fn new() -> Retained<Self>;
79    );
80}