Tip: Detect user idleness
June 30th, 2008 | Published in Google Desktop API
You can use framework.system.user.idle to detect whether the user is idle and might be away from the computer.
When the user is idle, you can choose to skip operations such as HTTP requests or audio playback:
if (framework.system.user.idle) {Have a tip you'd like to share? Send it to gd-developer AT google DOT com. To see all tips, choose the Tips label.
// User is idle/away. No need to re-retrieve the content.
} else {
retrieveContent();
}