pub struct BiometricEffects<'a, 'b, S: AppState> { /* private fields */ }Expand description
Convenience builder for standard biometric host capabilities.
Implementations§
Source§impl<'a, 'b, S: AppState> BiometricEffects<'a, 'b, S>
impl<'a, 'b, S: AppState> BiometricEffects<'a, 'b, S>
Sourcepub fn availability(self) -> EffectBuilder<'a, 'b, S>
pub fn availability(self) -> EffectBuilder<'a, 'b, S>
Queries local biometric support and enrollment state.
Use this before presenting a biometric-only path. The result tells the app whether the host supports biometric verification, whether credentials are enrolled, which modalities may be available, and whether device credential fallback is possible.
Sourcepub fn authenticate(
self,
request: BiometricAuthenticateRequest,
) -> EffectBuilder<'a, 'b, S>
pub fn authenticate( self, request: BiometricAuthenticateRequest, ) -> EffectBuilder<'a, 'b, S>
Asks the host to authenticate the current local user.
request.reason should explain why verification is needed before the
platform prompt appears. The success action receives
BiometricAuthenticateResult, which reports the modality and whether a
device credential fallback was used.
Sourcepub fn cancel_authentication(self) -> EffectBuilder<'a, 'b, S>
pub fn cancel_authentication(self) -> EffectBuilder<'a, 'b, S>
Cancels an active biometric authentication prompt where the host permits it.
Use this when the screen that requested verification is closed or the app changes state before the user responds. Some platform prompts cannot be cancelled programmatically after display.
Auto Trait Implementations§
impl<'a, 'b, S> Freeze for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> !RefUnwindSafe for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> Send for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> Sync for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> Unpin for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> UnsafeUnpin for BiometricEffects<'a, 'b, S>
impl<'a, 'b, S> !UnwindSafe for BiometricEffects<'a, 'b, S>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.