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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.