Idle mode detection for interactivity

As Xibo moving toward the interactivity, I would like to request a time out setting to detect user inactivity.
For example user touch a button and content changes to a new layout, the player should remain in that layout until user select to return or a time out happens when the user stopped interaction and after certain time (time out) the player return back to a default layout.

Thank you in advance