Skip to content

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.

Event that is invoked when the user’s activity changes from being active to inactive, or vice versa.


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.