search

goog.net.NetworkTester

Provided By

Creates an instance of goog.net.NetworkTester which can be used to test for internet connectivity by seeing if an image can be loaded from google.com. It can also be tested with other URLs.

new NetworkTester( callback, opt_handler, opt_uri )

Parameters
callback(Function|null)

Callback that is called when the test completes. The callback takes a single boolean parameter. True indicates the URL was reachable, false indicates it wasn't.

opt_handler(Object|null)=

Handler object for the callback.

opt_uri(goog.Uri|null)=

URI to use for testing.

Instance Methods

Static Properties