VibrationDevice.Vibrate | vibrate method

Applies to Windows Phone only

Vibrates the phone for the specified duration (from 0 to 5 seconds).

Syntax


vibrationDevice.vibrate(duration);

Parameters

duration

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

The duration (from 0 to 5 seconds) for which the phone vibrates. A value that is less than 0 or greater than 5 raises an exception.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.Devices.Notification
Windows::Phone::Devices::Notification [C++]

Metadata

Windows.winmd

See also

VibrationDevice

 

 

Community Additions

ADD
Show:
© 2014 Microsoft