W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2009

Re: The Device API

From: Brian LeRoux <brian@westcoastlogic.com>
Date: Wed, 2 Dec 2009 12:08:19 -0800
Message-ID: <a4bcf6320912021208r2a8ca17bp543faeb51ebbee58@mail.gmail.com>
To: Robin Berjon <robin@robineko.com>
Cc: public-device-apis@w3.org
Of possible interest, for the moment, PhoneGap implements device as a
global. With the following (documented) API:



Additionally we *just* added an event to the window called
'deviceReady' so that code can know when all the API's have been

window.addEventListener('deviceRead', function(e) { /* you get the idea */ });

We are open to moving it under navigator but that sparked a fair
amount of debate so we've opted to solve with patience. ;)

On Wed, Dec 2, 2009 at 2:44 AM, Robin Berjon <robin@robineko.com> wrote:
> Hi all,
> we're seeing APIs surfacing that rely on navigator.device; but that isn't specified.
> Some of you might recall this:
>  http://dev.w3.org/2009/dap/device/
> Reusing it, Capture could simply be declared as Supplemental, and then have "Device implements Capture" (if my WebIDL is up to date, which I have to double check here).
> We could very easily release this document, there isn't much to it.
> --
> Robin Berjon
>  robineko — hired gun, higher standards
>  http://robineko.com/
Received on Wednesday, 2 December 2009 20:08:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:02 GMT