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"))]
33unsafe impl ARAnchorCopying for ARParticipantAnchor {}
34
35#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
36unsafe impl NSCoding for ARParticipantAnchor {}
37
38#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
39unsafe impl NSCopying for ARParticipantAnchor {}
40
41#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
42unsafe impl CopyingHelper for ARParticipantAnchor {
43    type Result = Self;
44}
45
46#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
47unsafe impl NSObjectProtocol for ARParticipantAnchor {}
48
49#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
50unsafe impl NSSecureCoding for ARParticipantAnchor {}
51
52#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
53impl ARParticipantAnchor {
54    extern_methods!();
55}
56
57/// Methods declared on superclass `ARAnchor`.
58#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
59impl ARParticipantAnchor {
60    extern_methods!(
61        /// Unavailable
62        #[unsafe(method(init))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65
66        #[unsafe(method(new))]
67        #[unsafe(method_family = new)]
68        pub unsafe fn new() -> Retained<Self>;
69    );
70}