Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0Version 17.0 (current version)Version 16.0Version 15.0

Index

On this page

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.

See also