
| Name | Description | Type | Use |
|---|---|---|---|
| listener | Registered to intercept the Browser object's events. |
undefined |
required |
The Browser listener's callback object can be structured as
follows:
{
onClosed: function(url) { ... },
onLoadStarted: function(url) { ... },
onLoadFinished: function(url) { ... },
onLoadFailure: function(url, {error}) { ... }
}| Name | Description | Return type |
|---|---|---|
| onClosed |
Called when the Browser window is closed. |
undefined |
| onLoadStarted | Called when the browser starts loading the contents of the URL address. Applies for each URL loaded within the browser. |
undefined |
| onLoadFinished | Called once the browser finishes loading the contents of the URL address. Applies for each URL loaded within the browser. |
undefined |
| onLoadFailure | Called if the browser encounters an error while loading the contents of the URL address. Applies for each URL loaded within the browser. |
undefined |