FileDocCategorySizeDatePackage
WebHistoryItem.javaAPI DocAndroid 5.1 API2905Thu Mar 12 22:22:10 GMT 2015android.webkit

WebHistoryItem

public abstract class WebHistoryItem extends Object implements Cloneable
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. Each history item may be updated during the load of a page.
see
WebBackForwardList

Fields Summary
Constructors Summary
Methods Summary
protected abstract android.webkit.WebHistoryItemclone()
Clone the history item for use by clients of WebView.

public abstract android.graphics.BitmapgetFavicon()
Return the favicon of this history item or null if no favicon was found.

return
A Bitmap containing the favicon for this history item or null. Note: The VM ensures 32-bit atomic read/write operations so we don't have to synchronize this method.

public abstract intgetId()
Return an identifier for this history item. If an item is a copy of another item, the identifiers will be the same even if they are not the same object.

return
The id for this item.
deprecated
This method is now obsolete.
hide
Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}

public abstract java.lang.StringgetOriginalUrl()
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
The original url of this history item.

public abstract java.lang.StringgetTitle()
Return the document title of this history item.

return
The document title of this history item. Note: The VM ensures 32-bit atomic read/write operations so we don't have to synchronize this method.

public abstract java.lang.StringgetUrl()
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
The base url of this history item. Note: The VM ensures 32-bit atomic read/write operations so we don't have to synchronize this method.