I'm trying to use the vibration on the device (Windows Phone), however I can't seem to find the appropriate API to achieve this for Windows 10. In Windows 8.x, I can use this, however this is no longer available in Universal Windows Platform.
Can anyone point me in the right direction?
As of Jan 2016, you:
Right-click References in your Solution, Add Reference->Extensions->Windows Mobile Extensions for the UWP
Then you can
using Windows.Phone.Devices.Notification;
and actually use it by:
Windows.Phone.Devices.Notification.VibrationDevice v = VibrationDevice.GetDefault();
v.Vibrate(TimeSpan.FromMilliseconds(500));
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