Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProvider ¶
func SetProvider(p Provider)
Types ¶
type Provider ¶
type Provider interface {
// Vibrate runs a web-Vibration-API pattern: alternating vibrate/pause
// durations in milliseconds.
Vibrate(pattern []int64) error
}
Provider is a native vibration backend. On mobile the shell registers one via SetProvider (Vibrator/VibratorManager on Android, UIFeedbackGenerator on iOS). Desktop hardware has no vibrator; the JS bridge falls back to navigator.vibrate() where the WebView supports it.
Click to show internal directories.
Click to hide internal directories.