Navigation :
vibrator.newHaptic()
Type Function
Return value Haptic
See also vibrator.*
Overview
Returns a Haptic object, which provides the direct access to the Apple’s Taptic Engine. iOS only.
For more details on that API please refer to the Apple’s Reference.
Syntax
vibrator.newHaptic([type], [intensity])
type optional
String. Haptic feedback type, can be 'impact' (default), 'selection' or 'notification'.
intensity optional
String. Intensity level of 'impact' haptic, can be 'light', 'medium' (default) or 'heavy'.