ARTrackable

Trait ARTrackable 

Source
pub unsafe trait ARTrackable: NSObjectProtocol {
    // Provided method
    unsafe fn isTracked(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate features ARAnchor and objc2 only.
Expand description

A real world object or location in the scene that is being tracked.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn isTracked(&self) -> bool
where Self: Sized + Message,

Tracking state of the anchor

The isTracked value is used to determine the anchor transform’s validity. When the object being tracked is no longer detected in the camera image, its anchor will return NO for isTracked.

Trait Implementations§

Source§

impl ProtocolType for dyn ARTrackable

Source§

const NAME: &'static str = "ARTrackable"

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 ARTrackable
where T: ?Sized + Message + ARTrackable,

Implementations on Foreign Types§

Source§

impl<T> ARTrackable for ProtocolObject<T>
where T: ?Sized + ARTrackable,

Implementors§

Source§

impl ARTrackable for ARAppClipCodeAnchor

Available on crate feature ARAppClipCodeAnchor only.
Source§

impl ARTrackable for ARBodyAnchor

Available on crate feature ARBodyAnchor only.
Source§

impl ARTrackable for ARFaceAnchor

Available on crate feature ARFaceAnchor only.
Source§

impl ARTrackable for ARGeoAnchor

Available on crate feature ARGeoAnchor only.
Source§

impl ARTrackable for ARImageAnchor

Available on crate feature ARImageAnchor only.