Vibration.Vibrate Method

Definition

Overloads

Vibrate()

Vibrate the device fo 500ms.

Vibrate(Double)

Vibrate the device for the specified number of milliseconds in the range [0, 5000].

Vibrate(TimeSpan)

Vibrate the device for the specified time in the range [0, 5000]ms.

Vibrate()

Vibrate the device fo 500ms.

public static void Vibrate ();

Remarks

Vibrate(Double)

Vibrate the device for the specified number of milliseconds in the range [0, 5000].

public static void Vibrate (double duration);

Parameters

duration
Double

The number of milliseconds to vibrate for.

Remarks

On iOS, the device will only vibrate for 500ms, regardless of the value specified.

Vibrate(TimeSpan)

Vibrate the device for the specified time in the range [0, 5000]ms.

public static void Vibrate (TimeSpan duration);

Parameters

duration
TimeSpan

The time to vibrate for.

Remarks

On iOS, the device will only vibrate for 500ms, regardless of the value specified.

Applies to