Screen device metric count types

Updated: April 19, 2023

Types of metric counts for devices

Synopsis:

#include <screen/screen.h>
enum {
    SCREEN_DEVICE_METRIC_EVENT_COUNT = 0,
    SCREEN_DEVICE_METRIC_POWER_ON_COUNT = 1,
    SCREEN_DEVICE_METRIC_IDLE_COUNT = 2
};

Data:

SCREEN_DEVICE_METRIC_EVENT_COUNT
The number of input events generated by the device since the last time Screen device metric count types were queried.
SCREEN_DEVICE_METRIC_POWER_ON_COUNT
The number of times that the device has been powered on since the last time Screen device metrics were queried.
SCREEN_DEVICE_METRIC_IDLE_COUNT
The number of times the device has gone idle since the last time Screen device metrics were queried.

Library:

libscreen

Description:

The metrics are on a per device basis and the counts are reset after being queried. That is, the counts are reset to 0 after you call screen_get_device_property_llv() to retrieve SCREEN_PROPERTY_METRICS.