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 String!

Return the url of this history item.

abstract Bitmap?

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

abstract String!

Return the document title of this history item.

abstract String!

Return the original url of this history item.

Protected methods
abstract WebHistoryItem

Clone the history item for use by clients of WebView.

Public constructors

<init>

WebHistoryItem()

Public methods

getUrl

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.

getFavicon

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.

getTitle

abstract fun getTitle(): String!

Return the document title of this history item.

Return
String!: The document title of this history item.

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.
Requires API level 3 (Android 1.5, Cupcake)

Return
String!: The original url of this history item.

Protected methods

clone

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
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.