This property senses the best type of internet connection available
intel.xdk.device.connection
Description:
This property senses the best network connection type available and returns the result (either "wifi", "cell", or "none"). If the connection is still being negotiated by the device and the best network connection type is still being determined, this property will return the value "unknown". This property is updated only when the device.updateConnection() command is called and the intel.xdk.device.connection.update event is triggered.
Example:
document.addEventListener("intel.xdk.device.connection.update",function(){alert(intel.xdk.device.connection);},false);
intel.xdk.device.updateConnection();
Version:
This property is available in appMobi Version 3.0.0
English