public interface Navigator
WebView behavior.| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
canGo(int steps) |
Checks whether the current page can go forward or backward by a specified number of steps.
|
boolean |
canGoBack() |
Checks whether there is a previous page to go to.
|
boolean |
canGoForward() |
Checks whether there is a next page to go to.
|
void |
clear() |
Clears the browsing list.
|
BrowsingList |
copyBrowsingList() |
Obtains a copy of the browsing list.
|
void |
go(int steps) |
Goes to the destination page by a specified number of steps from the current page.
|
void |
goBack() |
Goes back to the previous page.
|
void |
goForward() |
Goes to the next page.
|
void goBack()
This method does not take effect on the first page.
boolean canGoBack()
true if there is a previous page to go to; returns false otherwise.void goForward()
This method does not take effect on the last page.
boolean canGoForward()
true if there is a next page to go to; returns false otherwise.void clear()
BrowsingList copyBrowsingList()
boolean canGo(int steps)
steps - Indicates the number of steps . A negative value indicates going backward, and a positive value
indicates going forward.true if the current page can go forward or backward by a specified number of steps;
returns false otherwise.void go(int steps)
steps - Indicates the number of steps. A negative value indicates going backward, and a positive value
indicates going forward.