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