bool OnNetworkStateChanged(inNetworkName, inInternetReachable)
Description
This callback is used to know when the network connection is changed or lost, click here to learn more how to use
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inNetworkName | string | the network name to check |
inInternetReachable | bool | Returns true/false if the network is available |
Return Type
bool
Example
Set Q5 with answer 2 if the network name is 'Wifi'
function OnNetworkStateChanged(inNetworkName, inInternetReachable){
if (inNetworkName=="Wifi");
{
SetAnswer(QRef(5),2);
}
}
Comments
Please sign in to leave a comment.