Skip to main content

HapticsExt

Trait HapticsExt 

Source
pub trait HapticsExt<R: Runtime> {
    // Required method
    fn haptics(&self) -> &Haptics<R>;
}
Expand description

Extensions to tauri::App, tauri::AppHandle, tauri::WebviewWindow, tauri::Webview and tauri::Window to access the haptics APIs.

Required Methods§

Source

fn haptics(&self) -> &Haptics<R>

Returns a handle to the Haptics APIs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R: Runtime, T: Manager<R>> HapticsExt<R> for T