• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.1.1.43
WebClientObserver Class Reference

Class for notifying the application about page loading progress. More...

Description

Deprecated:
Will be removed in a future release. Please extend BBWebViewClient, BBWebView and BBWebChromeClient for needed methods (official Android WebView approach).

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...
 

Member Function Documentation

◆ addOnPageStartedListener()

void addOnPageStartedListener ( OnPageStarted  listener)

Adds a page started loading listener to the list of observers.

Parameters
listener- a page listener to add
Deprecated:
Will be removed in a future release.

◆ removeOnPageStartedListener()

void removeOnPageStartedListener ( OnPageStarted  listener)

Removes a page started loading listener from the list of observers.

Parameters
listener- a page listener to remove
Deprecated:
Will be removed in a future release.

◆ notifyPageStarted()

void notifyPageStarted ( WebView  webView,
String  url 
)

Notifies a page listener when a page has started loading.

Parameters
webView- webView which loads a page
url- the current URL which WebView loads
Deprecated:
Will be removed in a future release. Please extend BBWebViewClient and override method onPageStarted

◆ addOnPageFinishedListener()

void addOnPageFinishedListener ( OnPageFinished  listener)

Adds a page finished loading listener to the list of observers.

Parameters
listener- a page listener to add
Deprecated:
Will be removed in a future release.

◆ removeOnPageFinishedListener()

void removeOnPageFinishedListener ( OnPageFinished  listener)

Removes a page finished loading listener from the list of observers.

Parameters
listener- a page listener to remove
Deprecated:
Will be removed in a future release.

◆ notifyPageFinished()

void notifyPageFinished ( WebView  webView,
String  url 
)

Notifies a page listener when a page has finished loading.

Parameters
webView- webView which loads a page
url- the current URL which WebView loads
Deprecated:
Will be removed in a future release. Please extend BBWebViewClient and override method onPageFinished

◆ addOnContentVisibleListener()

void addOnContentVisibleListener ( OnPageContentVisible  listener)

Adds a page listener in the list of observers for when content is visible.

Parameters
listener- a page listener to add
Deprecated:
Will be removed in a future release.

◆ removeOnContentVisibleListener()

void removeOnContentVisibleListener ( OnPageContentVisible  listener)

Removes a page listener from the list of observers for when content is visible.

Parameters
listener- a page listener to remove
Deprecated:
Will be removed in a future release.

◆ notifyPageContentVisible()

void notifyPageContentVisible ( WebView  webView,
String  url 
)

Notifies a page listener when a page becomes visible.

Parameters
webView- webView which loads a page
url- the current URL which WebView loads
Deprecated:
Will be removed in a future release. Please extend BBWebViewClient and override method onPageCommitVisible

◆ addLoadUrlListener()

void addLoadUrlListener ( OnLoadUrl  listener)

Adds a page listener in the list of observers for when a URL is loaded.

Parameters
listener- a page listener to add
Deprecated:
Will be removed in a future release.

◆ removeLoadUrlListener()

void removeLoadUrlListener ( OnLoadUrl  listener)

Removes a page listener from the list of observers for when a URL is loaded.

Parameters
listener- a page listener to remove
Deprecated:
Will be removed in a future release.

◆ notifyLoadUrl()

void notifyLoadUrl ( String  url)

Notifies a page listener when the URL is loaded.

Parameters
url- the current URL which WebView loads
Deprecated:
Will be removed in a future release. Please extend BBWebView and override method loadUrl

◆ addProgressListener()

void addProgressListener ( ProgressListener  listener)

Adds a page listener in the list of observers for when page progress has changed.

Parameters
listener- a page listener to add
Deprecated:
Will be removed in a future release.

◆ removeProgressListener()

void removeProgressListener ( ProgressListener  listener)

Removes a page listener from the list of observers for when page progress has changed.

Parameters
listener- a page listener to remove
Deprecated:
Will be removed in a future release.

◆ notifyProgressChanged()

void notifyProgressChanged ( int  newProgress)

Notifies a page listener if page progress has changed

Parameters
newProgress- the current page progress
Deprecated:
Will be removed in a future release. Please extend BBWebChromeClient and override method onProgressChanged