Added in API level 1
Deprecated in API level 18

WebIconDatabase

abstract class WebIconDatabase
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 the shared instance of the icon database.

open static WebIconDatabase!

Get the global instance of WebIconDatabase.

abstract Unit
open(path: String!)

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

abstract Unit

Release the icon for the given page url.

abstract Unit

Removes all the icons in the database.

abstract Unit

Request the Bitmap representing the icon for the given page url.

abstract Unit

Retain the icon for the given page url.

Public constructors

WebIconDatabase

WebIconDatabase()

Public methods

close

Added in API level 1
abstract fun close(): Unit

Deprecated: Deprecated in Java.

Close the shared instance of the icon database.

getInstance

Added in API level 1
open static fun getInstance(): 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

Added in API level 1
abstract fun open(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

Added in API level 1
abstract fun releaseIconForPageUrl(url: String!): Unit

Deprecated: Deprecated in Java.

Release the icon for the given page url.

Parameters
url String!: The page's url.

removeAllIcons

Added in API level 1
abstract fun removeAllIcons(): Unit

Deprecated: Deprecated in Java.

Removes all the icons in the database.

requestIconForPageUrl

Added in API level 1
abstract fun requestIconForPageUrl(
    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

Added in API level 1
abstract fun retainIconForPageUrl(url: String!): Unit

Deprecated: Deprecated in Java.

Retain the icon for the given page url.

Parameters
url String!: The page's url.