public abstract class WebBackForwardList
extends Object implements Cloneable, Serializable
| java.lang.Object | |
| android.webkit.WebBackForwardList | |
该类包含WebView的后退/前进列表。 WebView.copyBackForwardList()将返回这个类的副本,用于检查列表中的条目。
Public constructors |
|
|---|---|
WebBackForwardList() |
|
公共方法(Public methods) |
|
|---|---|
abstract int |
getCurrentIndex() 获取当前历史项目的索引。 |
abstract WebHistoryItem |
getCurrentItem() 返回当前历史项目。 |
abstract WebHistoryItem |
getItemAtIndex(int index) 获取给定索引的历史记录。 |
abstract int |
getSize() 获取后退/前进列表的总大小。 |
Protected methods |
|
|---|---|
abstract WebBackForwardList |
clone() 通过WebView的客户端克隆要在UI线程中使用的整个对象。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
int getCurrentIndex ()
获取当前历史项目的索引。 这个索引可以用来直接索引到数组列表中。
| 返回(Returns) | |
|---|---|
int |
The current index from 0...n or -1 if the list is empty. |
WebHistoryItem getCurrentItem ()
返回当前历史项目。 如果列表为空,则此方法返回null。
| 返回(Returns) | |
|---|---|
WebHistoryItem |
The current history item. |
WebHistoryItem getItemAtIndex (int index)
获取给定索引的历史记录。 索引范围是从0 ... n,其中0是第一项,n是最后一项。
| 参数(Parameters) | |
|---|---|
index |
int: The index to retrieve. |
| 返回(Returns) | |
|---|---|
WebHistoryItem |
|
WebBackForwardList clone ()
通过WebView的客户端克隆要在UI线程中使用的整个对象。 这创建了一个不应该被任何webkit包类修改的副本。
| 返回(Returns) | |
|---|---|
WebBackForwardList |
a clone of this instance. |