Share via


Vibration.Vibrate Method

Definition

Overloads

Vibrate()

Vibrates the device for 500ms.

Vibrate(Double)

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

Vibrate(TimeSpan)

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

Vibrate()

Source:
Vibration.shared.cs
Source:
Vibration.shared.cs

Vibrates the device for 500ms.

public:
 static void Vibrate();
public static void Vibrate ();
static member Vibrate : unit -> unit
Public Shared Sub Vibrate ()

Applies to

Vibrate(Double)

Source:
Vibration.shared.cs
Source:
Vibration.shared.cs

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

public:
 static void Vibrate(double duration);
public static void Vibrate (double duration);
static member Vibrate : double -> unit
Public Shared Sub Vibrate (duration As Double)

Parameters

duration
Double

The number of milliseconds to vibrate for. This value will be ignored on iOS as it only supports a vibration of 500ms.

Remarks

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

Applies to

Vibrate(TimeSpan)

Source:
Vibration.shared.cs
Source:
Vibration.shared.cs

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

public:
 static void Vibrate(TimeSpan duration);
public static void Vibrate (TimeSpan duration);
static member Vibrate : TimeSpan -> unit
Public Shared Sub Vibrate (duration As TimeSpan)

Parameters

duration
TimeSpan

The time to vibrate for. This value will be ignored on iOS as it only supports a vibration of 500ms.

Remarks

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

Applies to