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/WebHistoryItem#pubctors) \| [Methods](https://developer.android.com/reference/android/webkit/WebHistoryItem#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/webkit/WebHistoryItem#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/webkit/WebHistoryItem#inhmethods)

# WebHistoryItem

*** ** * ** ***

` public abstract class WebHistoryItem `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/java/lang/Cloneable `

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

<br />

*** ** * ** ***

A convenience class for accessing fields in an entry in the back/forward list of a WebView. Each WebHistoryItem is a snapshot of the requested history item.
**See also:**

- `https://developer.android.com/reference/android/webkit/WebBackForwardList`

## Summary

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

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/graphics/Bitmap` | ` https://developer.android.com/reference/android/webkit/WebHistoryItem#getFavicon()() ` Return the favicon of this history item or `null` if no favicon was found. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebHistoryItem#getOriginalUrl()() ` Return the original url of this history item. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebHistoryItem#getTitle()() ` Return the document title of this history item. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebHistoryItem#getUrl()() ` Return the url of this history item. |

| ### Protected methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/webkit/WebHistoryItem` | ` https://developer.android.com/reference/android/webkit/WebHistoryItem#clone()() ` Clone the history item for use 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

### WebHistoryItem

```
public WebHistoryItem ()
```

<br />

<br />

## Public methods

### getFavicon

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

```
public abstract Bitmap getFavicon ()
```

Return the favicon of this history item or `null` if no favicon was found.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap` | A Bitmap containing the favicon for this history item or `null`. <br /> |

### getOriginalUrl

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

```
public abstract String getOriginalUrl ()
```

Return the original url of this history item. This was the requested url, the final url may be different as there might have been redirects while loading the site.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The original url of this history item. <br /> |

### getTitle

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

```
public abstract String getTitle ()
```

Return the document title of this history item.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The document title of this history item. <br /> |

### getUrl

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

```
public abstract String getUrl ()
```

Return the url of this history item. The url is the base url of this history item. See getTargetUrl() for the url that is the actual target of this history item.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The base url of this history item. <br /> |

## Protected methods

### clone

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

```
protected abstract WebHistoryItem clone ()
```

Clone the history item for use by clients of WebView. 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/WebHistoryItem` | a clone of this instance. <br /> |