Added in API level 1

WebHistoryItem


abstract class WebHistoryItem : Cloneable
kotlin.Any
   ↳ android.webkit.WebHistoryItem

A convenience class for accessing fields in an entry in the back/forward list of a WebView. Each WebHistoryItem is a snapshot of the requested history item.

Summary

Public constructors

Public methods
abstract Bitmap?

Return the favicon of this history item or null if no favicon was found.

abstract String!

Return the original url of this history item.

abstract String!

Return the document title of this history item.

abstract String!

Return the url of this history item.

Protected methods
abstract WebHistoryItem

Clone the history item for use by clients of WebView.

Public constructors

WebHistoryItem

WebHistoryItem()

Public methods

getFavicon

Added in API level 1
abstract fun getFavicon(): Bitmap?

Return the favicon of this history item or null if no favicon was found.

Return
Bitmap? A Bitmap containing the favicon for this history item or null.

getOriginalUrl

Added in API level 3
abstract fun getOriginalUrl(): String!

Return the original url of this history item. This was the requested url, the final url may be different as there might have been redirects while loading the site.

Return
String! The original url of this history item.

getTitle

Added in API level 1
abstract fun getTitle(): String!

Return the document title of this history item.

Return
String! The document title of this history item.

getUrl

Added in API level 1
abstract fun getUrl(): String!

Return the url of this history item. The url is the base url of this history item. See getTargetUrl() for the url that is the actual target of this history item.

Return
String! The base url of this history item.

Protected methods

clone

Added in API level 1
protected abstract fun clone(): WebHistoryItem

Clone the history item for use by clients of WebView. On Android 4.4 and later there is no need to use this, as the object is already a read-only copy of the internal state.

Return
WebHistoryItem a clone of this instance.
Exceptions
java.lang.CloneNotSupportedException if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.