Created
April 15, 2016 05:10
-
-
Save chaosddp/0b18b1ce92689b2c8c06a9473c2813de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// maybe not exist this | |
if (ApiInformation.IsTypePresent("Windows.Phone.Devices.Notification.VibrationDevice")) | |
{ | |
var vibrateDevice = Windows.Phone.Devices.Notification.VibrationDevice.GetDefault(); | |
var duration = TimeSpan.FromMilliseconds(1000); | |
vibrateDevice.Vibrate(duration); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment