Timeframes a media button is held down for.
Synopsis:
#include <bps/mediacommon.h>
typedef enum {
MEDIA_BUTTON_LENGTH_UNRECOGNIZED = 0
MEDIA_BUTTON_LENGTH_SHORT = 1
MEDIA_BUTTON_LENGTH_MEDIUM = 2
MEDIA_BUTTON_LENGTH_LONG = 3
} media_button_length_t;
Data:
- MEDIA_BUTTON_LENGTH_UNRECOGNIZED
- An unrecognized length (not one listed below).
- MEDIA_BUTTON_LENGTH_SHORT
- The button is held for a short length of time (less than 600 ms).
- MEDIA_BUTTON_LENGTH_MEDIUM
- The button is held for a medium length of time (more than 600 ms).
- MEDIA_BUTTON_LENGTH_LONG
- Deprecated: The button is held for a long length of time.
Deprecated:
Long button presses are treated as medium button presses.
Library:
libbps (For the qcc command, use the -l bps option to link against this library)
Description:
This enumeration defines the length of time a media button can be held down for.