How to Shoot Vibration on my device

3

How does Vibrator fire in my Windows Phone 8.1 app?

As for example:

 if(==0)
 {
 VIBRAR APARELHO;
 }
    
asked by anonymous 15.08.2014 / 19:54

1 answer

2

You can use the command VibrateController as in the example below:

import Microsoft.Devices

VibrateController testVibrateController = VibrateController.Default;

if(Vibrar = true)
{
    testVibrateController.Start(TimeSpan.FromSeconds(3));
    testVibrateController.Stop();
}
    
15.08.2014 / 20:38