| java.lang.Object | ||
| ↳ | XWalkNavigationHistoryInternal | |
| ↳ | org.xwalk.core.XWalkNavigationHistory | |
This class represents a navigation history for a XWalkView instance. It's not thread-safe and should be only called on UI thread.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enum | XWalkNavigationHistory.Direction | The direction for web page navigation. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| XWalkNavigationHistory(XWalkNavigationHistoryInternal internal) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
canGoBack()
Test whether XWalkView can go back.
| ||||||||||
| boolean |
canGoForward()
Test whether XWalkView can go forward.
| ||||||||||
| void |
clear()
Clear all history owned by this XWalkView.
| ||||||||||
| int |
getCurrentIndex()
Get the index for current navigation item.
| ||||||||||
| XWalkNavigationItem |
getCurrentItem()
Get the current item which XWalkView displays.
| ||||||||||
| XWalkNavigationItem |
getItemAt(int index)
Get a specific item given by index.
| ||||||||||
| boolean |
hasItemAt(int index)
Test whether there is an item at a specific index.
| ||||||||||
| void |
navigate(XWalkNavigationHistory.Direction direction, int steps)
Navigates to the specified step from the current navigation item.
| ||||||||||
| int |
size()
Total size of navigation history for the XWalkView.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Test whether XWalkView can go back.
Test whether XWalkView can go forward.
Clear all history owned by this XWalkView.
Get the index for current navigation item.
Get the current item which XWalkView displays.
Get a specific item given by index.
| index | the given index. |
|---|
Test whether there is an item at a specific index.
| index | the given index. |
|---|
Navigates to the specified step from the current navigation item. Do nothing if the offset is out of bound.
| direction | the direction of navigation. |
|---|---|
| steps | go back or foward with a given steps. |
Total size of navigation history for the XWalkView.