After having a play with some of the different namespaces and classes within a WP7 project, I tried the VibrateController.
Found that the maximum duration for a vibration is 5 seconds.
To start a vibration :-
Microsoft.Devices.VibrateController.Default.Start(TimeSpan.FromSeconds(5));
To stop a vibration :-
Microsoft.Devices.VibrateController.Default.Stop();
Looking forward to being able to test this on a real device.
No comments:
Post a Comment