Is there an WinRT API in Windows 8 or Windows Phone 8 to use the vibration function?
Try this: (Only works on Windows Phone!)
var vibrationTime = TimeSpan.FromMilliseconds(100);
Windows.Phone.Devices.Notification.VibrationDevice.GetDefault().Vibrate(vibrationTime);
The leaked docs seem to mention the Microsoft.Devices.VibrateController class being available both in WP7 and WP8. I don't think there is something like that in WinRT though. I think tablets usually don't have a vibrator? Seems to be more like a feature of a phone that you might keep silenced in your pocket.
Some articles on vibrations
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With