Request that the LEDs flash a named color.
#include <bps/led.h>
BPS_API int led_request_color(const char *id,
led_color_t color,
int blink_count)
BlackBerry 10.0.0
An identifier for this request. This is used when updating a request by calling led_request_color() or led_request_rgb() again or when canceling a request with led_cancel().
The color to flash the LEDs.
The number of times to blink. Use a value of 0 to continue blinking until canceled or until the application exits.
The led_request() function requests that the LEDs flash the named color and the specified number of times. If the application does not have the access_led_control capability, this function will fail.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.