ScreenWakeLockExt

Trait ScreenWakeLockExt 

Source
pub trait ScreenWakeLockExt<R: Runtime> {
    // Required method
    fn screen_wake_lock(&self) -> &ScreenWakeLock<R>;
}
Expand description

Extensions to tauri::App, tauri::AppHandle and tauri::Window to access the screen-wake-lock APIs.

Required Methods§

Source

fn screen_wake_lock(&self) -> &ScreenWakeLock<R>

Implementors§

Source§

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