ARCoachingOverlayViewDelegate

Trait ARCoachingOverlayViewDelegate 

Source
pub unsafe trait ARCoachingOverlayViewDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn coachingOverlayViewDidRequestSessionReset(
        &self,
        coaching_overlay_view: &ARCoachingOverlayView,
    )
       where Self: Sized + Message { ... }
    unsafe fn coachingOverlayViewWillActivate(
        &self,
        coaching_overlay_view: &ARCoachingOverlayView,
    )
       where Self: Sized + Message { ... }
    unsafe fn coachingOverlayViewDidDeactivate(
        &self,
        coaching_overlay_view: &ARCoachingOverlayView,
    )
       where Self: Sized + Message { ... }
}
Available on crate features ARCoachingOverlayView and objc2 only.
Expand description

Provided Methods§

Source

unsafe fn coachingOverlayViewDidRequestSessionReset( &self, coaching_overlay_view: &ARCoachingOverlayView, )
where Self: Sized + Message,

Available on crate feature objc2-ui-kit only.

This is called when the user taps the reset button in the relocalization state

By default, when the relocalization reset button is tapped, the overlay will call run on the session using the current configuration, and the ARSessionRunOptionResetTracking and ARSessionRunOptionRemoveExistingAnchors options. The delegate may implement this method to override this behavior. The delegate is then responsible for resetting the session.

Parameter coachingOverlayView: The view currently active

Source

unsafe fn coachingOverlayViewWillActivate( &self, coaching_overlay_view: &ARCoachingOverlayView, )
where Self: Sized + Message,

Available on crate feature objc2-ui-kit only.

This is called when the view activate, either manually or automatically

The Developer may hide their application UI in in this callback, and take other appropriate actions to allow ARCoachingOverlayView to take over the full screen.

Parameter coachingOverlayView: The view that will be activated

Source

unsafe fn coachingOverlayViewDidDeactivate( &self, coaching_overlay_view: &ARCoachingOverlayView, )
where Self: Sized + Message,

Available on crate feature objc2-ui-kit only.

This is called when the view has been deactivated, either manually or automatically

Parameter coachingOverlayView: The view that was deactivated

Trait Implementations§

Source§

impl ProtocolType for dyn ARCoachingOverlayViewDelegate

Source§

const NAME: &'static str = "ARCoachingOverlayViewDelegate"

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 ARCoachingOverlayViewDelegate

Implementations on Foreign Types§

Source§

impl<T> ARCoachingOverlayViewDelegate for ProtocolObject<T>

Implementors§