Control

Use these classes to control the vibration and LED hardware on a device.

You can change the color that the LED flashes, as well as the number of times that it flashes. You can also make vibration requests to direct a device to vibrate at certain times in your app.

Libraries and permissions

To link against these classes, add the following line to your .pro file:

LIBS += -lbbdevice

You must also specify the following permissions in your bar-descriptor.xml file:

access_led_control

Additional resources

To download a code sample that demonstrates how to interact with the LED hardware, visit the Cascades Samples repository in Github.



Members