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 ();

Applies to

Vibrate(Double)

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

public static void Vibrate (double duration);

Parameters

duration
System.Double

The number of milliseconds to vibrate for.

Remarks

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

Applies to

Vibrate(TimeSpan)

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

public static void Vibrate (TimeSpan duration);

Parameters

duration
System.TimeSpan

The time to vibrate for.

Remarks

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

Applies to