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
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.