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.
Implementations§
Source§impl LiveTextInputStatusNotifier
impl LiveTextInputStatusNotifier
Sourcepub fn new(app: &mut App) -> Ref<LiveTextInputStatusNotifier>
pub fn new(app: &mut App) -> Ref<LiveTextInputStatusNotifier>
Create a new LiveTextStatusNotifier.
Sourcepub fn from_value(
app: &mut App,
value: LiveTextInputStatus,
) -> Ref<LiveTextInputStatusNotifier>
pub fn from_value( app: &mut App, value: LiveTextInputStatus, ) -> Ref<LiveTextInputStatusNotifier>
Dart LiveTextInputStatusNotifier(value:).
Sourcepub fn value(self: Handle<Self>, app: &App) -> LiveTextInputStatus
pub fn value(self: Handle<Self>, app: &App) -> LiveTextInputStatus
The current Live Text input availability.
Sourcepub fn set_value(
self: Handle<Self>,
app: &mut App,
new_value: LiveTextInputStatus,
)
pub fn set_value( self: Handle<Self>, app: &mut App, new_value: LiveTextInputStatus, )
Replaces the current value, notifying listeners when it differs.
Trait Implementations§
Source§impl ChangeNotifier for LiveTextInputStatusNotifier
impl ChangeNotifier for LiveTextInputStatusNotifier
fn change_notifier_data(&self) -> &ChangeNotifierData
fn change_notifier_data_mut(&mut self) -> &mut ChangeNotifierData
Source§fn will_add_listener(self: Handle<Self>, app: &mut App)
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)
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
impl Debug for LiveTextInputStatusNotifier
Source§impl WidgetsBindingObserverObject for LiveTextInputStatusNotifier
impl WidgetsBindingObserverObject for LiveTextInputStatusNotifier
Source§fn did_change_app_lifecycle_state(
self: Handle<Self>,
app: &mut App,
state: AppLifecycleState,
)
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)
fn did_change_metrics(self: Handle<Self>, app: &mut App)
Source§fn did_change_view_focus(
self: Handle<Self>,
app: &mut App,
event: ViewFocusEvent,
)
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)
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)
fn did_change_text_scale_factor(self: Handle<Self>, app: &mut App)
Source§fn did_change_platform_brightness(self: Handle<Self>, app: &mut App)
fn did_change_platform_brightness(self: Handle<Self>, app: &mut App)
Source§fn did_change_caption_style(self: Handle<Self>, app: &mut App)
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> ⓘ
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)
fn did_change_accessibility_features(self: Handle<Self>, app: &mut App)
Source§fn handle_start_back_gesture(
self: Handle<Self>,
app: &mut App,
back_event: PredictiveBackEvent,
) -> bool
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,
)
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)
fn handle_commit_back_gesture(self: Handle<Self>, app: &mut App)
Source§fn handle_cancel_back_gesture(self: Handle<Self>, app: &mut App)
fn handle_cancel_back_gesture(self: Handle<Self>, app: &mut App)
Source§fn did_fail_view_request(
self: Handle<Self>,
app: &mut App,
request: RequestId,
error: &ViewError,
)
fn did_fail_view_request( self: Handle<Self>, app: &mut App, request: RequestId, error: &ViewError, )
Auto Trait Implementations§
impl !RefUnwindSafe for LiveTextInputStatusNotifier
impl !Send for LiveTextInputStatusNotifier
impl !Sync for LiveTextInputStatusNotifier
impl !UnwindSafe for LiveTextInputStatusNotifier
impl Forget for LiveTextInputStatusNotifier
impl Freeze for LiveTextInputStatusNotifierwhere
*const u8 is !null: Freeze,
PhantomData<Option<Listener>>: Freeze,
*const RcInner<Cell<usize>> is !null: Freeze,
PhantomData<RcInner<Cell<usize>>>: Freeze,
*const RcInner<dyn WidgetsBindingObserver> is !null: Freeze,
PhantomData<RcInner<dyn WidgetsBindingObserver>>: Freeze,
impl Move for LiveTextInputStatusNotifier
impl Unpin for LiveTextInputStatusNotifier
impl UnsafeUnpin for LiveTextInputStatusNotifierwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Option<Listener>>: UnsafeUnpin,
*const RcInner<Cell<usize>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<usize>>>: UnsafeUnpin,
*const RcInner<dyn WidgetsBindingObserver> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetsBindingObserver>>: UnsafeUnpin,
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