canmove, Confirmed users
725
edits
No edit summary |
|||
Line 1: | Line 1: | ||
This exposes information about the current mobile data connection to (certain) HTML content. The primary use case for this is the status bar of the main phone UI. It typically shows the operator name. | |||
= Proposed API = | = Proposed API = | ||
Line 7: | Line 5: | ||
interface MobileConnection : EventTarget | interface MobileConnection : EventTarget | ||
{ | { | ||
/** | |||
* Indicates the state of the device's ICC card. | |||
* | |||
* Possible values: 'unavailable', 'absent', 'pin_required', 'puk_required', | |||
* 'network_locked', 'not_ready', 'ready'. | |||
*/ | |||
readonly attribute string cardState; | |||
/** | /** | ||
* Indicates whether the device is connected to a mobile network. | * Indicates whether the device is connected to a mobile network. | ||
Line 48: | Line 54: | ||
*/ | */ | ||
readonly attribute short bars; | readonly attribute short bars; | ||
/** | |||
* The 'cardstatechange' event is notified when the 'cardState' attribute | |||
* changes value. | |||
*/ | |||
attribute EventListener oncardstatechange; | |||
/** | /** |