Inactivity Measurement

A user's inactivity time is measured and stored with each lv_display_t object. Every use of an Input Device (if associated with the display) counts as an activity. To get time elapsed since the last activity, use lv_display_get_inactive_time(display1). If NULL is passed, the lowest inactivity time among all displays will be returned (in this case NULL does not mean the Default Display).

You can manually trigger an activity using lv_display_trigger_activity(display1). If display1 is NULL, the Default Display will be used (not all displays).

Further Reading