# WebIconDatabase.IconListener

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# WebIconDatabase.IconListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/webkit/WebIconDatabase.IconListener "View this page in Kotlin")\|Java

`
public
static


interface
WebIconDatabase.IconListener
`  
`


`

|---------------------------------------------|
| android.webkit.WebIconDatabase.IconListener |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 18.**   
This interface is obsolete.

Interface for receiving icons from the database.

## Summary

|                                                                                                                                                                                                             ### Public methods                                                                                                                                                                                                              ||
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onReceivedIcon](https://developer.android.com/reference/android/webkit/WebIconDatabase.IconListener#onReceivedIcon(java.lang.String,%20android.graphics.Bitmap))`(`[String](https://developer.android.com/reference/java/lang/String)` url, `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap)` icon) ` Called when the icon has been retrieved from the database and the result is non-null. |

## Public methods

### onReceivedIcon

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onReceivedIcon (String url, 
                Bitmap icon)
```

Called when the icon has been retrieved from the database and the result is non-null.

<br />

|                       Parameters                        ||
|--------|-------------------------------------------------|
| `url`  | `String`: The url passed in the request. <br /> |
| `icon` | `Bitmap`: The favicon for the given url. <br /> |