chore: update documentation

This commit is contained in:
Lucas Nogueira
2026-09-22 11:30:47 -03:00
parent d869c162a7
commit a87a3c7d44
104 changed files with 4875 additions and 222 deletions
+8
View File
@@ -18,18 +18,26 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
pub struct Haptics<R: Runtime>(AppHandle<R>);
impl<R: Runtime> Haptics<R> {
/// No-op on desktop; haptic feedback is not supported on Linux, macOS or Windows. Always
/// returns `Ok`.
pub fn vibrate(&self, _duration: u32) -> crate::Result<()> {
Ok(())
}
/// No-op on desktop; haptic feedback is not supported on Linux, macOS or Windows. Always
/// returns `Ok`.
pub fn impact_feedback(&self, _style: ImpactFeedbackStyle) -> crate::Result<()> {
Ok(())
}
/// No-op on desktop; haptic feedback is not supported on Linux, macOS or Windows. Always
/// returns `Ok`.
pub fn notification_feedback(&self, _type: NotificationFeedbackType) -> crate::Result<()> {
Ok(())
}
/// No-op on desktop; haptic feedback is not supported on Linux, macOS or Windows. Always
/// returns `Ok`.
pub fn selection_feedback(&self) -> crate::Result<()> {
Ok(())
}