2 Replies Latest reply on Jan 22, 2009 3:03 AM by flexstone

    Can AIR detect power status changes?

    bluefossil
      I'm trying to go through the API documentation and wondering if there's a way for AIR to be able to detect when the computer goes into power saving modes, like hibernation, etc, so that the application can react accordingly. Anyone knows if this is possible, or not at all?

      Thanks!
        • 1. Re: Can AIR detect power status changes?
          Cesare Rocchi Level 2
          I really think not at all.
          • 2. Re: Can AIR detect power status changes?
            flexstone Level 1
            These are the events which you can listen for - maybe one of these will help you accomplish your goal....

            activate
            Dispatched when this application becomes the active desktop application.

            deactivate
            Dispatched when the desktop focus is switched to a different application.

            exiting
            Dispatched when the application's exit sequence is started.

            invoke
            Dispatched when an application is invoked.

            networkChange
            Dispatched when either a new network connection becomes available or an existing network connection is lost.

            userIdle
            Dispatched when the user has been idle for the period of time specified by the idleThreshold property.

            userPresent
            Dispatched when the user uses the mouse use or keyboard after an idle period.