UserActivityService
Class | Source Code
Provides tracking and listening for user activity. Useful for detecting when the user isn’t actively doing something on the page.
Constructors
Section titled “Constructors”new UserActivityService()
Section titled “new UserActivityService()”Properties
Section titled “Properties”static onChangeActivityState: Event
Section titled “static onChangeActivityState: Event”Event that is invoked when the user’s activity changes from being active to inactive, or vice versa.
static onActivity: Event
Section titled “static onActivity: Event”Event that is invoked whenever user activity is detected. Note that any subscribers to this event will be triggered every single time there’s activity. So, should the user move their mouse, subscribers will be triggered for every move detected by the browser along the user’s mouse’s path.
Activity is triggered when the user moves their mouse, clicks their mouse, or upon releasing a keypress.