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
- Led -
The Led class represents requests for flashing the LED present on the device.
- LedColor -
The LedColor class provides a wrapper for the LedColor::Type enumeration.
- MiracastConnectionState
- MiracastDeviceCategory
- MiracastDeviceSubCategory
- MiracastDisplayState
- MiracastManager -
The MiracastManager class provides the entry point to accessing information about Miracast devices, or establishing connections with those devices.
- MiracastResult
- VibrationController