title: Detect if device is charging
body: <p>I can't find anything definite using <a href="http://www.google.com" rel="noreferrer">my favourite tool</a>, however I thought I would put it out here...</p>
  
  <p>Is there a way, using the iPhone SDK, for an app to detect if the device is in a state of receiving power (charging, dock, etc.)?</p>
  
  <p>I would like to be able to disable the idleTimer automatically if the device is receiving power (otherwise it is a user-specified setting).</p>