Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VibrationDevice.Vibrate | vibrate method

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 (device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

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

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (operating system)

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

Show:
© 2015 Microsoft