The OnAwake event occurs when user awake (become active) after some period of inactivity, specified in SleepInterval property.
Use OnAwake event to return the application status to previous state after "sleeping" (Away mode). To be notified when user inactive after some time period write OnSleep event handler.