java.lang.Object | |
↳ | com.tencent.smtt.sdk.WebBackForwardList |
This class contains the back/forward list for a WebView. WebView.copyBackForwardList() will return a copy of this class used to inspect the entries in the list.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getCurrentIndex()
Get the index of the current history item.
| ||||||||||
WebHistoryItem |
getCurrentItem()
Return the current history item.
| ||||||||||
WebHistoryItem |
getItemAtIndex(int index)
Get the history item at the given index.
| ||||||||||
int |
getSize()
Get the total size of the back/forward list.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the index of the current history item. This index can be used to directly index into the array list.
Return the current history item. This method returns null
if the list is
empty.
Get the history item at the given index. The index range is from 0...n where 0 is the first item and n is the last item.
index | The index to retrieve. |
---|
Get the total size of the back/forward list.