Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

HapticsApi

pub struct HapticsApi<P: CheckedPermissions> { /* private fields */ }

Implementations

impl<P: CheckedPermissions> HapticsApi<P>

pub fn try_new_with_timeout(timeout: Duration) -> Option<Self>

Permission: not needed

pub fn click(&self)
where P: MessageAllowed<Vibrate>,

Permission: os/haptics / Vibrate

Permission group: peripherals.feedback

Required signature: thirdParty

Approval: autoAllow

pub fn triple_click(&self)
where P: MessageAllowed<Vibrate>,

Permission: os/haptics / Vibrate

Permission group: peripherals.feedback

Required signature: thirdParty

Approval: autoAllow

pub fn strong_click(&self)
where P: MessageAllowed<Vibrate>,

Permission: os/haptics / Vibrate

Permission group: peripherals.feedback

Required signature: thirdParty

Approval: autoAllow

pub fn double_click(&self)
where P: MessageAllowed<Vibrate>,

Permission: os/haptics / Vibrate

Permission group: peripherals.feedback

Required signature: thirdParty

Approval: autoAllow

pub fn vibrate(&self, haptic_pattern: HapticPattern)
where P: MessageAllowed<Vibrate>,

Permission: os/haptics / Vibrate

Permission group: peripherals.feedback

Required signature: thirdParty

Approval: autoAllow

Trait Implementations

impl<P: Default + CheckedPermissions> Default for HapticsApi<P>

fn default() -> HapticsApi<P>

Returns the “default value” for a type. Read more

Auto Trait Implementations

impl<P> Freeze for HapticsApi<P>

impl<P> RefUnwindSafe for HapticsApi<P>

impl<P> Send for HapticsApi<P>

impl<P> Sync for HapticsApi<P>

impl<P> Unpin for HapticsApi<P>

impl<P> UnsafeUnpin for HapticsApi<P>

impl<P> UnwindSafe for HapticsApi<P>