Sometimes, you really need to know if the handheld that your app runs on has a vibrator or a alert LED. These routines can help you:
Boolean hasLED()
{
UInt32 capabilities;
FtrGet(kAttnFtrCreator, kAttnFtrCapabilities, &capabilities);
if (capabilities & kAttnFlagsHasLED)
{
return true;
}
else
{
return false;
}
}
Boolean hasVibration()
{
UInt32 capabilities;
FtrGet(kAttnFtrCreator, kAttnFtrCapabilities, &capabilities);
if (capabilities & kAttnFlagsHasVibrate)
{
return true;
}
else
{
return false;
}
}
These routines worked in both PODS 1.1 and OnBoardC. Feel free to use them in your own apps!
Related posts:







My Treo 650 doesn’t report the vibration bit: 0×00010003 is the capability bit field.
Hi Henk,
the utter lack of a Treo doesn’T allow me to comment;).
Best regards
Tam Hanna