ARSessionDelegate

Trait ARSessionDelegate 

Source
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§

Source

unsafe fn session_didUpdateFrame(&self, session: &ARSession, frame: &ARFrame)
where Self: Sized + Message,

Available on crate feature 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.

Source

unsafe fn session_didAddAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
where Self: Sized + Message,

Available on crate features 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.

Source

unsafe fn session_didUpdateAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
where Self: Sized + Message,

Available on crate features 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.

Source

unsafe fn session_didRemoveAnchors( &self, session: &ARSession, anchors: &NSArray<ARAnchor>, )
where Self: Sized + Message,

Available on crate features 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.

Trait Implementations§

Source§

impl ProtocolType for dyn ARSessionDelegate

Source§

const NAME: &'static str = "ARSessionDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn ARSessionDelegate

Implementations on Foreign Types§

Source§

impl<T> ARSessionDelegate for ProtocolObject<T>

Implementors§