Changes

Jump to: navigation, search

WebAPI/WebMobileConnection/Multi-SIM

256 bytes added, 03:32, 20 November 2013
m
Web API: navigator.mozMobileConnections
=== Web API ===
The change is quite simple, -- navigator.mozMobileConnection becomes an array of nsIDOMMozMobileConnection obect, i.e. navigator.mozMobileConnections. API users can use The length of the array is actually the number of services provided on a device. And the index of the array is used as 'serviceId.' as an index to access corresponding service object.
We don't modify the existed interface, like nsIDOMMozMobileConnection, nsIDOMMozMobileConnectionInfo ...etc, to minimize the coding effort of gaia.
interface nsIMozNavigatorMobileConnectionManager: nsISupports
{
// An array of nsIDOMMozMobileConnection.
readonly attribute jsval mozMobileConnections;
};
interface nsIDOMMozMobileConnection : nsIDOMEventTarget
{
Confirm
978
edits

Navigation menu