# HistoryItemsPage.Success

# HistoryItemsPage.Success


```
interface HistoryItemsPage.Success : HistoryItemsPage
```

<br />

*** ** * ** ***

Represents a successful fetch of a history items page.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage.Success#loadNext()()` Returns the next page of history items. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage.Success#endOfPagination()` Whether this is the last page of the history items. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage.Success#filter()` Internal holder for the current filter. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage.Success#nextPageToken()` Internal holder for the next page token. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItem>` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryItemsPage.Success#result()` The list of history items. |

## Public functions

### loadNext

```
suspend fun loadNext(): HistoryItemsPage
```

Returns the next page of history items. If there are no more pages, returns an error page with HomeException with code `https://developers.home.google.com/reference/kotlin/com/google/home/HomeException.Codes#HISTORY_API_ERROR()` and `https://developers.home.google.com/reference/kotlin/com/google/home/SubErrorCodes.HistoryApi#END_OF_PAGINATION()`.

## Public properties

### endOfPagination

```
val endOfPagination: Boolean
```

Whether this is the last page of the history items.

### filter

```
val filter: String
```

Internal holder for the current filter.

### nextPageToken

```
val nextPageToken: String
```

Internal holder for the next page token.

### result

```
val result: List<HistoryItem>
```

The list of history items.