Device Power Status

Discussion in 'iOS Programming' started by forrestgrant, May 4, 2009.

  1. forrestgrant macrumors member

    Jun 24, 2008
    Is there a way to check if the phone/iPod is plugged in?
    I know this has not been possible yet, but wasn't sure if it was in 3.0?
  2. fishkorp macrumors 68020


    Apr 10, 2006
    Ellicott City, MD
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/3.1.1 Mobile/7A300g Safari/525.20)

    You can check if the battery is charging or discharging, which is essentially the same thing. MemoryInfo does this. So it's not a 3.0 thing.

Share This Page