pub struct LiveTextTrackingImageView { /* private fields */ }Expand description
Wraps the VisionKit tracking image view counterpart.
Implementations§
Source§impl LiveTextTrackingImageView
impl LiveTextTrackingImageView
Sourcepub fn new() -> Result<Self, VisionKitError>
pub fn new() -> Result<Self, VisionKitError>
Creates the VisionKit LiveTextTrackingImageView wrapper.
Sourcepub fn frame(&self) -> Result<Rect, VisionKitError>
pub fn frame(&self) -> Result<Rect, VisionKitError>
Returns the VisionKit frame value.
Sourcepub fn set_frame(&self, frame: Rect) -> Result<(), VisionKitError>
pub fn set_frame(&self, frame: Rect) -> Result<(), VisionKitError>
Sets the VisionKit frame value.
Sourcepub fn set_image_at_path<P: AsRef<Path>>(
&self,
path: P,
) -> Result<(), VisionKitError>
pub fn set_image_at_path<P: AsRef<Path>>( &self, path: P, ) -> Result<(), VisionKitError>
Sets the VisionKit image at path value.
Sourcepub fn image_size(&self) -> Result<Option<Size>, VisionKitError>
pub fn image_size(&self) -> Result<Option<Size>, VisionKitError>
Returns the VisionKit image size value.
Trait Implementations§
Source§impl Drop for LiveTextTrackingImageView
impl Drop for LiveTextTrackingImageView
Auto Trait Implementations§
impl Freeze for LiveTextTrackingImageView
impl RefUnwindSafe for LiveTextTrackingImageView
impl !Send for LiveTextTrackingImageView
impl !Sync for LiveTextTrackingImageView
impl Unpin for LiveTextTrackingImageView
impl UnsafeUnpin for LiveTextTrackingImageView
impl UnwindSafe for LiveTextTrackingImageView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more