ShowTable of Contents
Change event
You can react on the change of the networks status as follows:
Ti.Network.addEventListener("change", function(e) {
// e.networkType -> type of network
// e.networkTypeName -> type as a string
// e.online -> true if the device has a network
// example: run code if device goes online
if (e.online) {
// do something
}
});