KMManager.setHapticFeedback()
Summary
The setHapticFeedback() method sets whether the device vibrates as the user types.
Syntax
KMManager.setHapticFeedback(boolean value)
Parameters
value
Set true
to enable device vibrating as the user types, false
to disable.
Description
Use this method to enable or disable haptic feedback. This determines if the device vibrates as the user types. By default, haptic feedback is disabled.
Examples
Example: Using setHapticFeedback()
The following script illustrates the use of setHapticFeedback()
:
// Enable haptic feeedback
KMManager.setHapticFeedback(true);
History
Keyman Engine for Android 15.0: New function.