public abstract class WebHistoryItem
extends Object implements Cloneable
| java.lang.Object | |
| android.webkit.WebHistoryItem | |
用于访问WebView的后退/前进列表中条目中字段的便捷类。 每个WebHistoryItem都是请求的历史记录项的快照。 每个历史项目可能会在加载页面期间更新。
也可以看看:
Public constructors |
|
|---|---|
WebHistoryItem() |
|
公共方法(Public methods) |
|
|---|---|
abstract Bitmap |
getFavicon() 返回此历史项目的图标,如果没有找到图标,则返回null。 |
abstract String |
getOriginalUrl() 返回此历史项目的原始网址。 |
abstract String |
getTitle() 返回此历史项目的文档标题。 |
abstract String |
getUrl() 返回此历史项目的网址。 |
Protected methods |
|
|---|---|
abstract WebHistoryItem |
clone() 克隆历史项目以供WebView的客户端使用。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
Bitmap getFavicon ()
返回此历史项目的图标,如果没有找到图标,则返回null。
| 返回(Returns) | |
|---|---|
Bitmap |
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. |
String getOriginalUrl ()
返回此历史项目的原始网址。 这是请求的网址,最终的网址可能会有所不同,因为加载网站时可能有重定向。
| 返回(Returns) | |
|---|---|
String |
The original url of this history item. |
String getTitle ()
返回此历史项目的文档标题。
| 返回(Returns) | |
|---|---|
String |
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. |
String getUrl ()
返回此历史项目的网址。 该网址是此历史记录的基本网址。 请参阅getTargetUrl()以获取此历史记录项目的实际目标网址。
| 返回(Returns) | |
|---|---|
String |
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. |
WebHistoryItem clone ()
克隆历史项目以供WebView的客户端使用。
| 返回(Returns) | |
|---|---|
WebHistoryItem |
a clone of this instance. |