Share via


VibrationExtensions.Vibrate(IVibration, Double) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static void Vibrate(Microsoft::Maui::Devices::IVibration ^ vibration, double duration);
public static void Vibrate (this Microsoft.Maui.Devices.IVibration vibration, double duration);
static member Vibrate : Microsoft.Maui.Devices.IVibration * double -> unit
<Extension()>
Public Sub Vibrate (vibration As IVibration, duration As Double)

Parameters

vibration
IVibration

The object this method is invoked on.

duration
Double

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

Applies to