vibrator.hasVibrator()


Type Function

Return value Boolean

See also vibrator.*


Overview

Returns true if vibrator is present. On iOS it checks if the Taptic Engine API exists, that would be true on all iOS 10 devices, however currently only iPhone 7 and iPhone 7 Plus or later can actually vibrate.

Syntax

vibrator.hasVibrator()