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.

Example

The following code vibrates the device for 0.8 seconds.

var vibration = require('FuseJS/Vibration');
vibration.vibrate(0.8);

Location

Namespace
Fuse.Vibration
Package
Fuse.Vibration 1.8.0-rc2

Interface of VibrationModule

Inherited from NativeModule

Inherited from Module

GetFile : FileSource uno

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.

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces