Class for notifying the application about page loading progress. More...
Classes | |
interface | OnLoadUrl |
Called when the current URL is loaded in the WebView. More... | |
interface | OnPageContentVisible |
Called when the content of a page will be visible. More... | |
interface | OnPageFinished |
Called when a page has finished loading. More... | |
interface | OnPageStarted |
Called when a page has started loading. More... | |
interface | ProgressListener |
Called when the current progress of a page has changed. More... | |
Public Member Functions | |
void | addOnPageStartedListener (OnPageStarted listener) |
Adds a page started loading listener to the list of observers. More... | |
void | removeOnPageStartedListener (OnPageStarted listener) |
Removes a page started loading listener from the list of observers. More... | |
void | notifyPageStarted (WebView webView, String url) |
Notifies a page listener when a page has started loading. More... | |
void | addOnPageFinishedListener (OnPageFinished listener) |
Adds a page finished loading listener to the list of observers. More... | |
void | removeOnPageFinishedListener (OnPageFinished listener) |
Removes a page finished loading listener from the list of observers. More... | |
void | notifyPageFinished (WebView webView, String url) |
Notifies a page listener when a page has finished loading. More... | |
void | addOnContentVisibleListener (OnPageContentVisible listener) |
Adds a page listener in the list of observers for when content is visible. More... | |
void | removeOnContentVisibleListener (OnPageContentVisible listener) |
Removes a page listener from the list of observers for when content is visible. More... | |
void | notifyPageContentVisible (WebView webView, String url) |
Notifies a page listener when a page becomes visible. More... | |
void | addLoadUrlListener (OnLoadUrl listener) |
Adds a page listener in the list of observers for when a URL is loaded. More... | |
void | removeLoadUrlListener (OnLoadUrl listener) |
Removes a page listener from the list of observers for when a URL is loaded. More... | |
void | notifyLoadUrl (String url) |
Notifies a page listener when the URL is loaded. More... | |
void | addProgressListener (ProgressListener listener) |
Adds a page listener in the list of observers for when page progress has changed. More... | |
void | removeProgressListener (ProgressListener listener) |
Removes a page listener from the list of observers for when page progress has changed. More... | |
void | notifyProgressChanged (int newProgress) |
Notifies a page listener if page progress has changed. More... | |
void addOnPageStartedListener | ( | OnPageStarted | listener | ) |
Adds a page started loading listener to the list of observers.
listener | - a page listener to add |
void removeOnPageStartedListener | ( | OnPageStarted | listener | ) |
Removes a page started loading listener from the list of observers.
listener | - a page listener to remove |
void notifyPageStarted | ( | WebView | webView, |
String | url | ||
) |
Notifies a page listener when a page has started loading.
webView | - webView which loads a page |
url | - the current URL which WebView loads |
void addOnPageFinishedListener | ( | OnPageFinished | listener | ) |
Adds a page finished loading listener to the list of observers.
listener | - a page listener to add |
void removeOnPageFinishedListener | ( | OnPageFinished | listener | ) |
Removes a page finished loading listener from the list of observers.
listener | - a page listener to remove |
void notifyPageFinished | ( | WebView | webView, |
String | url | ||
) |
Notifies a page listener when a page has finished loading.
webView | - webView which loads a page |
url | - the current URL which WebView loads |
void addOnContentVisibleListener | ( | OnPageContentVisible | listener | ) |
Adds a page listener in the list of observers for when content is visible.
listener | - a page listener to add |
void removeOnContentVisibleListener | ( | OnPageContentVisible | listener | ) |
Removes a page listener from the list of observers for when content is visible.
listener | - a page listener to remove |
void notifyPageContentVisible | ( | WebView | webView, |
String | url | ||
) |
Notifies a page listener when a page becomes visible.
webView | - webView which loads a page |
url | - the current URL which WebView loads |
void addLoadUrlListener | ( | OnLoadUrl | listener | ) |
Adds a page listener in the list of observers for when a URL is loaded.
listener | - a page listener to add |
void removeLoadUrlListener | ( | OnLoadUrl | listener | ) |
Removes a page listener from the list of observers for when a URL is loaded.
listener | - a page listener to remove |
void notifyLoadUrl | ( | String | url | ) |
Notifies a page listener when the URL is loaded.
url | - the current URL which WebView loads |
void addProgressListener | ( | ProgressListener | listener | ) |
Adds a page listener in the list of observers for when page progress has changed.
listener | - a page listener to add |
void removeProgressListener | ( | ProgressListener | listener | ) |
Removes a page listener from the list of observers for when page progress has changed.
listener | - a page listener to remove |
void notifyProgressChanged | ( | int | newProgress | ) |
Notifies a page listener if page progress has changed
newProgress | - the current page progress |