pub struct LiveText;Expand description
Utility methods for interacting with the system’s Live Text.
For example, the Live Text input feature of iOS turns the keyboard into a camera view for directly inserting text obtained through OCR into the active field.
See also:
Implementations§
Source§impl LiveText
impl LiveText
Sourcepub fn is_live_text_input_available(_app: &App) -> bool
pub fn is_live_text_input_available(_app: &App) -> bool
Returns true if the Live Text input feature is available on the current device.
Sourcepub fn start_live_text_input(_app: &App)
pub fn start_live_text_input(_app: &App)
Start Live Text input.
If any TextInputConnection is currently active, calling this method will tell the text field
to start Live Text input. If the current device doesn’t support Live Text input,
nothing will happen.
Auto Trait Implementations§
impl Freeze for LiveText
impl RefUnwindSafe for LiveText
impl Send for LiveText
impl Sync for LiveText
impl Unpin for LiveText
impl UnsafeUnpin for LiveText
impl UnwindSafe for LiveText
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