Skip to main content

LiveTextInputStatusNotifier

Struct LiveTextInputStatusNotifier 

Source
pub struct LiveTextInputStatusNotifier { /* private fields */ }
Expand description

A ChangeNotifier whose value indicates whether the current device supports the Live Text (OCR) function.

See also:

  • LiveText, where the availability of Live Text input can be obtained.
  • LiveTextInputStatus, an enumeration that indicates whether the current device is available for Live Text input.

Call update to refresh value if needed.

Implementations§

Source§

impl LiveTextInputStatusNotifier

Source

pub fn new(app: &mut App) -> Ref<LiveTextInputStatusNotifier>

Create a new LiveTextStatusNotifier.

Source

pub fn from_value( app: &mut App, value: LiveTextInputStatus, ) -> Ref<LiveTextInputStatusNotifier>

Dart LiveTextInputStatusNotifier(value:).

Source

pub fn value(self: Handle<Self>, app: &App) -> LiveTextInputStatus

The current Live Text input availability.

Source

pub fn set_value( self: Handle<Self>, app: &mut App, new_value: LiveTextInputStatus, )

Replaces the current value, notifying listeners when it differs.

Source

pub fn update(self: Handle<Self>, app: &mut App)

Check the Live Text input status and update value if needed.

Source

pub fn dispose(self: Handle<Self>, app: &mut App)

Discards any resources used by the object.

Trait Implementations§

Source§

impl ChangeNotifier for LiveTextInputStatusNotifier

Source§

fn change_notifier_data(&self) -> &ChangeNotifierData

Source§

fn change_notifier_data_mut(&mut self) -> &mut ChangeNotifierData

Source§

fn will_add_listener(self: Handle<Self>, app: &mut App)

Runs before the listener is stored. Dart overrides of addListener that work before super.addListener go here.
Source§

fn did_remove_listener(self: Handle<Self>, app: &mut App)

Runs after the listener is removed. Dart overrides of removeListener that work after super.removeListener go here.
Source§

impl Debug for LiveTextInputStatusNotifier

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl WidgetsBindingObserverObject for LiveTextInputStatusNotifier

Source§

fn did_change_app_lifecycle_state( self: Handle<Self>, app: &mut App, state: AppLifecycleState, )

Source§

fn did_change_metrics(self: Handle<Self>, app: &mut App)

Source§

fn did_change_locales( self: Handle<Self>, app: &mut App, locales: Option<&[Locale]>, )

Source§

fn did_change_view_focus( self: Handle<Self>, app: &mut App, event: ViewFocusEvent, )

Source§

fn did_change_drag(self: Handle<Self>, app: &mut App, report: &DragReport)

Source§

fn did_change_text_scale_factor(self: Handle<Self>, app: &mut App)

Source§

fn did_change_platform_brightness(self: Handle<Self>, app: &mut App)

Source§

fn did_change_caption_style(self: Handle<Self>, app: &mut App)

Source§

fn did_request_app_exit( self: Handle<Self>, app: &mut App, ) -> Task<AppExitResponse> ⓘ

Source§

fn did_change_accessibility_features(self: Handle<Self>, app: &mut App)

Source§

fn did_pop_route(self: Handle<Self>, app: &mut App, view: ViewId) -> bool

Source§

fn handle_start_back_gesture( self: Handle<Self>, app: &mut App, back_event: PredictiveBackEvent, ) -> bool

Source§

fn handle_update_back_gesture_progress( self: Handle<Self>, app: &mut App, back_event: PredictiveBackEvent, )

Source§

fn handle_commit_back_gesture(self: Handle<Self>, app: &mut App)

Source§

fn handle_cancel_back_gesture(self: Handle<Self>, app: &mut App)

Source§

fn did_add_view(self: Handle<Self>, app: &mut App, view: &ViewRef)

Source§

fn did_remove_view(self: Handle<Self>, app: &mut App, view: ViewId)

Source§

fn did_fail_view_request( self: Handle<Self>, app: &mut App, request: RequestId, error: &ViewError, )

Source§

fn did_request_view_close( self: Handle<Self>, app: &mut App, view: ViewId, ) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ListenableObject for T
where T: ChangeNotifier,

Source§

fn add_listener(self: Handle<T>, app: &mut App, listener: Listener)

Register a closure to be called when the object notifies its listeners.
Source§

fn remove_listener(self: Handle<T>, app: &mut App, listener: &Listener)

Remove a previously registered closure from the list of closures that the object notifies.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>