VibrationExtensions.Vibrate(IVibration, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.