Stay organized with collections
Save and categorize content based on your preferences.
IconListener
interface IconListener
Interface for receiving icons from the database.
Summary
Public methods |
abstract Unit |
Called when the icon has been retrieved from the database and the result is non-null.
|
Public methods
onReceivedIcon
abstract fun onReceivedIcon(
url: String!,
icon: Bitmap!
): Unit
Deprecated: Deprecated in Java.
Called when the icon has been retrieved from the database and the result is non-null.
Parameters |
url |
String!: The url passed in the request. |
icon |
Bitmap!: The favicon for the given url. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WebIconDatabase.IconListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIconListener\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebIconDatabase.IconListener \"View this page in Java\") \n\n```\ninterface IconListener\n```\n\n|--------------------------------------------------|\n| [android.webkit.WebIconDatabase.IconListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 18.**\n|\n| This interface is obsolete.\n\nInterface for receiving icons from the database.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onReceivedIcon](#onReceivedIcon(kotlin.String,%20android.graphics.Bitmap))`(`url:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `icon:` `[Bitmap](../graphics/Bitmap.html#)!`)` Called when the icon has been retrieved from the database and the result is non-null. |\n\nPublic methods\n--------------\n\n### onReceivedIcon\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onReceivedIcon(\n url: String!, \n icon: Bitmap!\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled when the icon has been retrieved from the database and the result is non-null.\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------|\n| `url` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The url passed in the request. |\n| `icon` | [Bitmap](../graphics/Bitmap.html#)!: The favicon for the given url. |"]]