java.lang.Object | |
↳ | android.webkit.WebIconDatabase |
This class was deprecated
in API level 18.
This class is only required when running on devices
up to JELLY_BEAN_MR2
Functions for manipulating the icon database used by WebView.
These functions require that a WebView be constructed before being invoked
and WebView.getIconDatabase() will return a WebIconDatabase object. This
WebIconDatabase object is a single instance and all methods operate on that
single object.
The main use-case for this class is calling open(String)
to enable favicon functionality on all WebView instances in this process.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebIconDatabase.IconListener | This interface was deprecated in API level 18. This interface is obsolete. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close the shared instance of the icon database.
| |||||||||||
Get the global instance of WebIconDatabase.
| |||||||||||
Open a the icon database and store the icons in the given path.
| |||||||||||
Release the icon for the given page url.
| |||||||||||
Removes all the icons in the database.
| |||||||||||
Request the Bitmap representing the icon for the given page
url.
| |||||||||||
Retain the icon for the given page url.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the global instance of WebIconDatabase.
Open a the icon database and store the icons in the given path.
path | The directory path where the icon database will be stored. |
---|
Release the icon for the given page url.
url | The page's url. |
---|
Request the Bitmap representing the icon for the given page url. If the icon exists, the listener will be called with the result.
url | The page's url. |
---|---|
listener | An implementation on IconListener to receive the result. |
Retain the icon for the given page url.
url | The page's url. |
---|