API Reference - Connectivity.connectivityOff
Connectivity.connectivityOff
Event triggered when the Internet connectivity status changes to False
.
Example
1
2
3
4
5
6
7
8
9
10
try{
// Connectivity
if ((typeof Connectivity !== "undefined") && (typeof Connectivity.addEventListener !== "undefined")) {
Connectivity.addEventListener("connectivityOff", function(){
alert("The internet connectivity is now off");
});
}
} catch(e) {
DealWithConnectivityError(e);
}
Appeared in Software version 5.14.06.10