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 |
abstract String! |
Return the original url of this history item. |
abstract String! |
getTitle() Return the document title of this history item. |
abstract String! |
getUrl() Return the url of this history item. |
Protected methods | |
---|---|
abstract WebHistoryItem |
clone() Clone the history item for use by clients of WebView. |
Public constructors
WebHistoryItem
WebHistoryItem()
Public methods
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 . |
getOriginalUrl
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
abstract fun getTitle(): String!
Return the document title of this history item.
Return | |
---|---|
String! |
The document title of this history item. |
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. |
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 | |
---|---|
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. |