WebIconDatabase
abstract classWebIconDatabase
kotlin.Any | |
↳ | android.webkit.WebIconDatabase |
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
to enable favicon functionality on all WebView instances in this process.
Summary
Nested classes | |
---|---|
abstract |
Interface for receiving icons from the database. |
Public constructors | |
---|---|
Public methods | |
---|---|
abstract Unit |
close() Close the shared instance of the icon database. |
open static WebIconDatabase! |
Get the global instance of WebIconDatabase. |
abstract Unit |
Open a the icon database and store the icons in the given path. |
abstract Unit |
releaseIconForPageUrl(url: String!) Release the icon for the given page url. |
abstract Unit |
Removes all the icons in the database. |
abstract Unit |
requestIconForPageUrl(url: String!, listener: WebIconDatabase.IconListener!) Request the Bitmap representing the icon for the given page url. |
abstract Unit |
retainIconForPageUrl(url: String!) Retain the icon for the given page url. |
Public constructors
WebIconDatabase
WebIconDatabase()
Public methods
close
abstract funclose(): Unit
Deprecated: Deprecated in Java.
Close the shared instance of the icon database.
getInstance
open static fungetInstance(): WebIconDatabase!
Deprecated: Deprecated in Java.
Get the global instance of WebIconDatabase.
Return | |
---|---|
WebIconDatabase! |
A single instance of WebIconDatabase. It will be the same instance for the current process each time this method is called. |
open
abstract funopen(path: String!): Unit
Deprecated: Deprecated in Java.
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
abstract funreleaseIconForPageUrl(url: String!): Unit
Deprecated: Deprecated in Java.
Release the icon for the given page url.
Parameters | |
---|---|
url |
String!: The page's url. |
removeAllIcons
abstract funremoveAllIcons(): Unit
Deprecated: Deprecated in Java.
Removes all the icons in the database.
requestIconForPageUrl
abstract funrequestIconForPageUrl(
url: String!,
listener: WebIconDatabase.IconListener!
): Unit
Deprecated: Deprecated in Java.
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
abstract funretainIconForPageUrl(url: String!): Unit
Deprecated: Deprecated in Java.
Retain the icon for the given page url.
Parameters | |
---|---|
url |
String!: The page's url. |