Sunday, 16 May 2010

WP7 and Microsoft.Devices.VibrateController

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