I am developing an application and looking for an event/method which gets called everytime irrespective of the user interaction or not with the application so that I can write my logic to render the timeout dialog. Can someone suggest me how this could be achieved in the app.component.ts.
anonymous function(){
//listen to any state of the application, be it user clicks, mouse move, ideal, keyboards events so that my function can be invoked.
PS:- idle package just works for ideal state with a timeout.
With the idle package you can just determine the idle state of the application but I am looking for something which can be executed irrespective of it.