goog.net.NetworkTester |
callback
: Function
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=
Handler object for the callback.
|
opt_uri
: goog.Uri=
URI to use for testing.
|
![]()
Cleans up the handlers and timer associated with the image.
|
code » | ||
Returns the numer of retries to attempt.
Returns: number
Number of retries to attempt.
|
code » | ||
Returns the pause between retries in milliseconds.
Returns: number
Pause between retries in milliseconds.
|
code » | ||
Returns the timeout in milliseconds.
Returns: number
Timeout in milliseconds.
|
code » | ||
Returns the uri to use for the test.
Returns: goog.Uri
The uri for the test.
|
code » | ||
Returns whether the tester is currently running.
Returns: boolean
True if it's running, false if it's not running.
|
code » | ||
![]()
Callback for the image load being aborted.
|
code » | ||
![]()
Callback for the image failing to load.
|
code » | ||
![]()
Callback for the image successfully loading.
|
code » | ||
![]()
Callback for the image load timing out.
|
code » | ||
![]()
Callback for the pause between retry timer.
|
code » | ||
![]()
Handles a successful or failed result.
Arguments:
|
code » | ||
![]()
Sets the timeout in milliseconds.
Arguments:
|
code » | ||
![]()
Sets the pause between retries in milliseconds.
Arguments:
|
code » | ||
![]()
Sets the timeout in milliseconds.
Arguments:
|
code » | ||
![]()
Sets the uri to use for the test.
Arguments:
|
code » | ||
![]()
Starts the process of testing the network.
|
code » | ||
![]()
Starts the next attempt to load an image.
|
code » | ||
![]()
Stops the testing of the network. This is a noop if not running.
|
code » |
![]()
Attempt number we're on
|
Code » | |
![]()
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.
|
Code » | |
![]()
Handler object for the callback.
|
Code » | |
Logger object
|
Code » | |
![]()
Pause between retries in milliseconds.
|
Code » | |
![]()
Timer for pauses between retries.
|
Code » | |
![]()
Number of retries to attempt
|
Code » | |
![]()
Whether we've already started running.
|
Code » | |
![]()
Timeout for test
|
Code » | |
![]()
Timer for timeouts.
|
Code » | |
Uri to use for test. Defaults to using an image off of google.com
|
Code » |
![]()
Default timeout
|
Code » |