WebAPI/WebMobileConnection: Difference between revisions
< WebAPI
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
attribute string type | attribute string type | ||
attribute float signalstrength; | attribute float signalstrength; | ||
attribute EventListener onconnectionchange; | |||
attribute EventListener onsignalstrengthchange; | |||
} | } | ||
Revision as of 13:26, 20 February 2012
Goals
Expose information about the current mobile data connection to (certain) HTML content.
Proposed API
interface MobileConnection : EventTarget
{
attribute bool connected;
attribute bool roaming;
attribute string operator;
attribute string type
attribute float signalstrength;
attribute EventListener onconnectionchange; attribute EventListener onsignalstrengthchange; }