Vibration Class
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 ref class Vibration abstract sealed
public static class Vibration
type Vibration = class
Public Class Vibration
- Inheritance
-
Vibration
Remarks
On Android make sure that the android.permission.VIBRATE
permission is declared in the AndroidManifest.xml
file.
Properties
Default |
Provides the default implementation for static usage of this API. |
Methods
Cancel() |
Cancel any current vibrations. |
Vibrate() |
Vibrates the device for 500ms. |
Vibrate(Double) |
Vibrates the device for the specified number of milliseconds in the range [0, 5000]ms. |
Vibrate(TimeSpan) |
Vibrates the device for the specified time in the range [0, 5000]ms. |