IVibration Interface
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.
The Vibration API provides an easy way to make the device vibrate.
public interface class IVibration
public interface IVibration
type IVibration = interface
Public Interface IVibration
Properties
IsSupported |
Gets a value indicating whether vibration is supported on this device. |
Methods
Cancel() |
Cancel any current vibrations. |
Vibrate() |
Vibrates the device for 500ms. |
Vibrate(TimeSpan) |
Vibrates the device for the specified time in the range [0, 5000]ms. |
Extension Methods
Vibrate(IVibration, Double) |
Vibrates the device for the specified time in the range [0, 5000]ms. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for