Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NetworkError()
- {
- Titanium.API.debug("Created NetworkError object");
- function pollNetCheck()
- {
- Titanium.API.debug("Polling network");
- if(this.checkNetwork() === false)
- {
- clearInterval(this.polling);
- this.displayNetworkError();
- }
- }
- function checkNetwork()
- {
- if(Titanium.Network.NETWORK_NONE)
- {
- Titanium.API.error('Error: No network');
- return false;
- }
- Titanium.API.info('Were on ' + Titanium.Network.networkTypeName);
- return true;
- }
- function displayNetworkError()
- {
- }
- }
Add Comment
Please, Sign In to add comment