pub struct LiveTextInteractionDelegate { /* private fields */ }Expand description
Wraps the VisionKit live text interaction delegate counterpart.
Implementations§
Source§impl LiveTextInteractionDelegate
impl LiveTextInteractionDelegate
Sourcepub fn new() -> Result<Self, VisionKitError>
pub fn new() -> Result<Self, VisionKitError>
Creates the VisionKit LiveTextInteractionDelegate wrapper.
Sourcepub fn should_begin(&self) -> Result<bool, VisionKitError>
pub fn should_begin(&self) -> Result<bool, VisionKitError>
Returns whether VisionKit should begin.
Sourcepub fn set_should_begin(&self, value: bool) -> Result<(), VisionKitError>
pub fn set_should_begin(&self, value: bool) -> Result<(), VisionKitError>
Sets the VisionKit should begin value.
Sourcepub fn contents_rect_override(&self) -> Result<Option<Rect>, VisionKitError>
pub fn contents_rect_override(&self) -> Result<Option<Rect>, VisionKitError>
Returns the VisionKit contents rect override value.
Sourcepub fn set_contents_rect_override(
&self,
value: Option<Rect>,
) -> Result<(), VisionKitError>
pub fn set_contents_rect_override( &self, value: Option<Rect>, ) -> Result<(), VisionKitError>
Sets the VisionKit contents rect override value.
Sourcepub fn content_view(
&self,
) -> Result<Option<LiveTextContentView>, VisionKitError>
pub fn content_view( &self, ) -> Result<Option<LiveTextContentView>, VisionKitError>
Returns the VisionKit content view value.
Sourcepub fn set_content_view(
&self,
value: Option<&LiveTextContentView>,
) -> Result<(), VisionKitError>
pub fn set_content_view( &self, value: Option<&LiveTextContentView>, ) -> Result<(), VisionKitError>
Sets the VisionKit content view value.
Sourcepub fn should_handle_key_down_event(&self) -> Result<bool, VisionKitError>
pub fn should_handle_key_down_event(&self) -> Result<bool, VisionKitError>
Returns whether VisionKit should handle key down event.
Sourcepub fn set_should_handle_key_down_event(
&self,
value: bool,
) -> Result<(), VisionKitError>
pub fn set_should_handle_key_down_event( &self, value: bool, ) -> Result<(), VisionKitError>
Sets the VisionKit should handle key down event value.
Returns whether VisionKit should show menu for event.
Sets the VisionKit should show menu for event value.
Returns the VisionKit updated menu value.
Sets the VisionKit updated menu value.
Sourcepub fn recorded_events(
&self,
) -> Result<Vec<LiveTextDelegateEvent>, VisionKitError>
pub fn recorded_events( &self, ) -> Result<Vec<LiveTextDelegateEvent>, VisionKitError>
Returns the VisionKit delegate events recorded by this wrapper.
Sourcepub fn clear_recorded_events(&self) -> Result<(), VisionKitError>
pub fn clear_recorded_events(&self) -> Result<(), VisionKitError>
Clears the recorded VisionKit delegate events.