Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/webkit/WebBackForwardList#pubctors) \| [Methods](https://developer.android.com/reference/android/webkit/WebBackForwardList#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/webkit/WebBackForwardList#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/webkit/WebBackForwardList#inhmethods)

# WebBackForwardList

*** ** * ** ***

` public abstract class WebBackForwardList `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/java/lang/Cloneable, https://developer.android.com/reference/java/io/Serializable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.webkit.WebBackForwardList |

<br />

*** ** * ** ***

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.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/webkit/WebBackForwardList#WebBackForwardList()() ` |

| ### Public methods ||
|---|---|
| ` abstract int` | ` https://developer.android.com/reference/android/webkit/WebBackForwardList#getCurrentIndex()() ` Get the index of the current history item. |
| ` abstract https://developer.android.com/reference/android/webkit/WebHistoryItem` | ` https://developer.android.com/reference/android/webkit/WebBackForwardList#getCurrentItem()() ` Return the current history item. |
| ` abstract https://developer.android.com/reference/android/webkit/WebHistoryItem` | ` https://developer.android.com/reference/android/webkit/WebBackForwardList#getItemAtIndex(int)(int index) ` Get the history item at the given index. |
| ` abstract int` | ` https://developer.android.com/reference/android/webkit/WebBackForwardList#getSize()() ` Get the total size of the back/forward list. |

| ### Protected methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/webkit/WebBackForwardList` | ` https://developer.android.com/reference/android/webkit/WebBackForwardList#clone()() ` Clone the entire object to be used in the UI thread by clients of WebView. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### WebBackForwardList

```
public WebBackForwardList ()
```

<br />

<br />

## Public methods

### getCurrentIndex

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getCurrentIndex ()
```

Get the index of the current history item. This index can be used to directly index into the array list.

<br />

| Returns ||
|---|---|
| `int` | The current index from 0...n or -1 if the list is empty. <br /> |

### getCurrentItem

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract WebHistoryItem getCurrentItem ()
```

Return the current history item. This method returns `null` if the list is empty.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebHistoryItem` | The current history item. <br /> |

### getItemAtIndex

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract WebHistoryItem getItemAtIndex (int index)
```

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.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index to retrieve. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebHistoryItem` | <br /> |

### getSize

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getSize ()
```

Get the total size of the back/forward list.

<br />

| Returns ||
|---|---|
| `int` | The size of the list. <br /> |

## Protected methods

### clone

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected abstract WebBackForwardList clone ()
```

Clone the entire object to be used in the UI thread by clients of WebView. This creates a copy that should never be modified by any of the webkit package classes. On Android 4.4 and later there is no need to use this, as the object is already a read-only copy of the internal state.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebBackForwardList` | a clone of this instance. <br /> |