# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Ctors | Methods | Inherited Methods

# WebIconDatabase

`public abstract class WebIconDatabase`
`extends Object` ``

java.lang.Object
↳ | android.webkit.WebIconDatabase

This class is deprecated.
This class is only required when running on devices up to `Build.VERSION_CODES.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.

## Summary

### Nested classes
`interface` | `WebIconDatabase.IconListener` This interface is deprecated. This interface is obsolete.

### Public constructors
`WebIconDatabase()`

### Public methods
`abstract void` | `close()` Close the shared instance of the icon database.
`static WebIconDatabase` | `getInstance()` Get the global instance of WebIconDatabase.
`abstract void` | `open(String path)` Open a the icon database and store the icons in the given path.
`abstract void` | `releaseIconForPageUrl(String url)` Release the icon for the given page url.
`abstract void` | `removeAllIcons()` Removes all the icons in the database.
`abstract void` | `requestIconForPageUrl(String url, WebIconDatabase.IconListener listener)` Request the Bitmap representing the icon for the given page url.
`abstract void` | `retainIconForPageUrl(String url)` Retain the icon for the given page url.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### WebIconDatabase

    public WebIconDatabase ()

## Public methods

### close

    public abstract void close ()

Close the shared instance of the icon database.

### getInstance

    public static WebIconDatabase getInstance ()

Get the global instance of WebIconDatabase.

Returns
`WebIconDatabase` | A single instance of WebIconDatabase. It will be the same instance for the current process each time this method is called.

### open

    public abstract void open (String path)

Open a the icon database and store the icons in the given path.

Parameters
`path` | `String`: The directory path where the icon database will be stored.

### releaseIconForPageUrl

    public abstract void releaseIconForPageUrl (String url)

Release the icon for the given page url.

Parameters
`url` | `String`: The page's url.

### removeAllIcons

    public abstract void removeAllIcons ()

Removes all the icons in the database.

### requestIconForPageUrl

    public abstract void requestIconForPageUrl (String url,
                    WebIconDatabase.IconListener listener)

Request the Bitmap representing the icon for the given page url. If the icon exists, the listener will be called with the result.

Parameters
`url` | `String`: The page's url.
`listener` | `WebIconDatabase.IconListener`: An implementation on IconListener to receive the result.

### retainIconForPageUrl

    public abstract void retainIconForPageUrl (String url)

Retain the icon for the given page url.

Parameters
`url` | `String`: The page's url.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*