| Previous | Next | |
STF.checkNetConnection() : BooleanA boolean.; This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Checks to see whether the user is connected to the Internet.
The following example returns the status of the computers internet connection.
var isConnection:Boolean;
// callback function
onCheckNetConnectionReturn = function(returnValue:Boolean) {
isConnection= returnValue;
}
// register callback function
STF.registerCallBack("checkNetConnection", onCheckNetConnectionReturn, this);
STF.checkNetConnection();| Questions or Feedback? | Previous | Next |