WebAPI/WebMobileConnection: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
= Goals =
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.
 
Expose information about the current mobile data connection to (certain) HTML content.


= 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;
      
      
     /**
     /**
canmove, Confirmed users
725

edits