pub unsafe trait ARSessionDelegate: ARSessionObserver {
// Provided methods
unsafe fn session_didUpdateFrame(
&self,
session: &ARSession,
frame: &ARFrame,
)
where Self: Sized + Message { ... }
unsafe fn session_didAddAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
where Self: Sized + Message { ... }
unsafe fn session_didUpdateAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
where Self: Sized + Message { ... }
unsafe fn session_didRemoveAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
where Self: Sized + Message { ... }
}Available on crate features
ARSession and objc2 only.Expand description
Provided Methods§
Sourceunsafe fn session_didUpdateFrame(&self, session: &ARSession, frame: &ARFrame)
Available on crate feature ARFrame only.
unsafe fn session_didUpdateFrame(&self, session: &ARSession, frame: &ARFrame)
ARFrame only.This is called when a new frame has been updated.
Parameter session: The session being run.
Parameter frame: The frame that has been updated.
Sourceunsafe fn session_didAddAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
Available on crate features ARAnchor and objc2-foundation only.
unsafe fn session_didAddAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
ARAnchor and objc2-foundation only.This is called when new anchors are added to the session.
Parameter session: The session being run.
Parameter anchors: An array of added anchors.
Sourceunsafe fn session_didUpdateAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
Available on crate features ARAnchor and objc2-foundation only.
unsafe fn session_didUpdateAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
ARAnchor and objc2-foundation only.This is called when anchors are updated.
Parameter session: The session being run.
Parameter anchors: An array of updated anchors.
Sourceunsafe fn session_didRemoveAnchors(
&self,
session: &ARSession,
anchors: &NSArray<ARAnchor>,
)
Available on crate features ARAnchor and objc2-foundation only.
unsafe fn session_didRemoveAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
ARAnchor and objc2-foundation only.This is called when anchors are removed from the session.
Parameter session: The session being run.
Parameter anchors: An array of removed anchors.