vibrate(seconds) js
vibrationType (string) the type of vibration (works only on iOS using TapticEngine). Available vibrationType are : soft
, rigid
, light
, medium
, heavy
, success
, warning
, error
, selection
Allows you to use the device's vibration functionality.
You need to add a reference to "Fuse.Vibration"
in your project file to use this feature.
The following code vibrates the device for 0.8 seconds.
var vibration = require('FuseJS/Vibration');
vibration.vibrate(0.8);
// works on iOS using TapticEngine
vibration.vibrate('medium');
vibrationType (string) the type of vibration (works only on iOS using TapticEngine). Available vibrationType are : soft
, rigid
, light
, medium
, heavy
, success
, warning
, error
, selection
Returns the file source that will be watched by the Context for changes in Fuse preview. Override in subclasses and return correct file source to support live updates in Fuse preview.