Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buzzer ¶
type Buzzer struct { }
Buzzer provides methods to trigger haptic feedback. On OSes other than android, all methods are no-ops.
func (*Buzzer) Buzz ¶
Buzz attempts to trigger a haptic vibration without blocking. It returns whether or not it was successful. If it returns false, it is safe to retry. On unsupported platforms, it always returns true.
func (*Buzzer) Errors ¶
Errors returns a channel of errors from trying to interface with the JVM. This channel will close when Shutdown() is invoked.
Click to show internal directories.
Click to hide internal directories.