WebAPI/NetworkAPI: Difference between revisions
< WebAPI
Jump to navigation
Jump to search
Paul.irish (talk | contribs) (→Status: link!) |
m ('has specification' to 'has a specification') |
||
Line 1: | Line 1: | ||
== Device API specification == | == Device API specification == | ||
The DAP WG (W3C) has specification sharing this proposal goal [1]. Our proposal might or might not look like it for the moment. Suggestions and comments will be submitted to the Device Status Task Force [2]. | The DAP WG (W3C) has a specification sharing this proposal goal [1]. Our proposal might or might not look like it for the moment. Suggestions and comments will be submitted to the Device Status Task Force [2]. | ||
[1] http://dev.w3.org/2009/dap/netinfo/ | [1] http://dev.w3.org/2009/dap/netinfo/ | ||
Line 8: | Line 8: | ||
== Status == | == Status == | ||
The proposed specification doesn't have a working implementation yet. The implementation will be done in http://bugzil.la/677166 | The proposed specification doesn't have a working implementation yet. The implementation will be done in http://bugzil.la/677166. | ||
== Demo == | == Demo == |
Revision as of 10:43, 16 December 2011
Device API specification
The DAP WG (W3C) has a specification sharing this proposal goal [1]. Our proposal might or might not look like it for the moment. Suggestions and comments will be submitted to the Device Status Task Force [2].
[1] http://dev.w3.org/2009/dap/netinfo/ [2] http://lists.w3.org/Archives/Public/public-device-status/
Status
The proposed specification doesn't have a working implementation yet. The implementation will be done in http://bugzil.la/677166.
Demo
TBD
Proposed API
partial interface Navigator { readonly attribute Connection connection; }; interface Connection { // Estimated bandwidth (in MB/s) of the current connection. readonly attribute double bandwidth; // Return whether the current connection is metered (like quota limitation, pay per use, etc.). readonly attribute boolean metered; }
Notes
- .speed will be some arbitrary values for the moment. It might be really estimated later.
- .restricted is going to return false unless a pref is switched by the user. In that case, it will return true if the connection is of a mobile type (like 2/3/4g).
- There is no .type because we believe that might be abused. It could be added later if there is a strong need for it.