pub struct Taskbar<R: Runtime> { /* private fields */ }Expand description
Taskbar plugin state and high-level Rust API.
Implementations§
Source§impl<R: Runtime> Taskbar<R>
impl<R: Runtime> Taskbar<R>
Sourcepub fn initialize(&self, window: &WebviewWindow<R>) -> Result<()>
pub fn initialize(&self, window: &WebviewWindow<R>) -> Result<()>
Explicitly initializes taskbar thumbnail controls for the provided webview window.
Sourcepub fn set_playback_state(
&self,
window: &WebviewWindow<R>,
is_playing: bool,
) -> Result<()>
pub fn set_playback_state( &self, window: &WebviewWindow<R>, is_playing: bool, ) -> Result<()>
Updates play/pause visual state on taskbar thumbnail buttons.
Updates previous/next enabled state on taskbar thumbnail buttons.
Sourcepub const fn is_supported() -> bool
pub const fn is_supported() -> bool
Returns whether native taskbar thumbnail behavior is supported.
Auto Trait Implementations§
impl<R> !Freeze for Taskbar<R>
impl<R> RefUnwindSafe for Taskbar<R>
impl<R> Send for Taskbar<R>
impl<R> Sync for Taskbar<R>
impl<R> Unpin for Taskbar<R>
impl<R> UnsafeUnpin for Taskbar<R>
impl<R> UnwindSafe for Taskbar<R>
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