Re: iPhone: detect if docked?

2009-08-17 Thread Eric E. Dolecki
I want to disable the sleep timer, so any charging I'll do that, if not I will restore the sleep timer Thanks, E. On Aug 17, 2009, at 12:33 AM, David Duncan david.dun...@apple.com wrote: More than likely yes. But I'm not certain you can use the EA framework to detect such a situation

Re: iPhone: detect if docked?

2009-08-16 Thread David Duncan
More than likely yes. But I'm not certain you can use the EA framework to detect such a situation anyway (if someone knows for certain I'm happy to be wrong here). And in absence of further data as to the nature of the power source, it would be difficult for a developer to recognize this

Re: iPhone: detect if docked?

2009-08-15 Thread Jack Carbaugh
ah but wouldn't this be a FAIL if say, the user was using a battery extender for a quick recharge ? On Aug 15, 2009, at 3:40 AM, David Duncan wrote: On Aug 14, 2009, at 4:29 AM, Sean Kline wrote: Is another option to use the External Accessory framework? I don't think so. A simple

Re: iPhone: detect if docked?

2009-08-14 Thread Sean Kline
Is another option to use the External Accessory framework? On Thu, Aug 13, 2009 at 5:26 PM, David Duncan david.dun...@apple.comwrote: On Aug 13, 2009, at 2:12 PM, Eric E. Dolecki wrote: Is there a way to tell if the device is currently docked? Probably the closest thing would be to use

iPhone: detect if docked?

2009-08-13 Thread Eric E. Dolecki
I am looking into disabling the idle timer when the thing is docked and running my application. UIApplication* application = [UIApplication sharedApplication]; application.idleTimerDisabled = YES; Is there a way to tell if the device is currently docked so that the app doesn't get smacked down by

Re: iPhone: detect if docked?

2009-08-13 Thread David Duncan
On Aug 13, 2009, at 2:12 PM, Eric E. Dolecki wrote: Is there a way to tell if the device is currently docked? Probably the closest thing would be to use the Battery API to determine if the battery is being charged. See UIDevice for details. -- David Duncan Apple DTS Animation and Printing