Expand description
Inactivity timer hook for detecting when users need help.
This hook monitors user activity and triggers a callback when the user has been inactive for a specified duration. Used to trigger Socratic hints when students are struggling.
Structs§
- Inactivity
State - State returned by the inactivity timer hook
Constants§
- DEFAULT_
INACTIVITY_ THRESHOLD_ MS - Default inactivity threshold (5 seconds)
Functions§
- use_
activity_ resetter - use_
inactivity_ timer - Non-WASM fallback that does nothing (for testing)
- use_
is_ inactive