-
Notifications
You must be signed in to change notification settings - Fork 4
Phone Profiles
Peter Foot edited this page May 22, 2024
·
1 revision
An example of functionality which is implemented differently between touchscreen and non-touchscreen devices are Profiles. Standard Edition devices can feature a number of profiles for different scenarios, touch screen devices have just three - On, Vibrate only and Off. To retrieve all of the available profiles use the following code:-
foreach(string profile in InTheHand.WindowsMobile.Forms.MobileDevice.Profiles)
{
MessageBox.Show(profile);
}
You can set the device profile using a call to SetProfile:-
InTheHand.WindowsMobile.Forms.MobileDevice.SetProfile("Vibrate");
The name of the currently selected profile is available from the CurrentProfile property:-
MessageBox.Show(InTheHand.WindowsMobile.Forms.MobileDevice.CurrentProfile);