bool is_system_resume_automatic()

This function determines is a system resumption is automatic.



true The system was restored to the working state automatically and the user is not active.
false The system resumption was driven by the user.


The event power_broadcast::automatic_resume is broadcast when the system awakes automatically to handle an event. The user may not be present. If the system detects user activity after broadcasting the event power_broadcast::automatic_resume, it will broadcast the event power_broadcast::suspend_resume to let applications know they can resume full interaction with the user.