Share via


IVibration.Vibrate Method

Definition

Overloads

Vibrate()

Vibrates the device for 500ms.

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:
 void Vibrate();
public void Vibrate ();
abstract member Vibrate : unit -> unit
Public Sub Vibrate ()

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:
 void Vibrate(TimeSpan duration);
public void Vibrate (TimeSpan duration);
abstract member Vibrate : TimeSpan -> unit
Public 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