vibrate method
The vibrate()
method of the Navigator interface pulses the
vibration
hardware on the device, if such hardware exists. If the device doesn't
support
vibration, this method has no effect. If a vibration pattern is already in
progress when
this method is called, the previous pattern is halted and the new one
begins instead.
If the method was unable to vibrate because of invalid parameters, it will
return
false
, else it returns true
. If the pattern leads to a too
long vibration, it is truncated: the max length depends on the
implementation.
Implementation
external bool vibrate(VibratePattern pattern);