BackForwardList

class BackForwardList(pointer: <Error class: unknown class><<Error class: unknown class>>)

List of visited pages.

WebKitBackForwardList maintains a list of visited pages used to navigate to recent pages. Items are inserted in the list in the order they are visited.

WebKitBackForwardList also maintains the notion of the current item (which is always at index 0), the preceding item (which is at index -1), and the following item (which is at index 1). Methods webkit_web_view_go_back() and webkit_web_view_go_forward() move the current item backward or forward by one. Method webkit_web_view_go_to_back_forward_list_item() sets the current item to the specified item. All other methods returning #WebKitBackForwardListItems do not change the value of the current item, they just return the requested item or items.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitBackForwardListPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (itemAdded: BackForwardListItem?, <Error class: unknown class>?) -> Unit): <Error class: unknown class>

This signal is emitted when @back_forward_list changes. This happens when the current item is updated, a new item is added or one or more items are removed. Note that both @item_added and @items_removed can null when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.

Link copied to clipboard

Returns the item that precedes the current item.

Link copied to clipboard
fun getBackList(): <Error class: unknown class>

Obtain the list of items preceding the current one.

Link copied to clipboard
fun getBackListWithLimit(limit: <Error class: unknown class>): <Error class: unknown class>

Obtain a list up to some number of items preceding the current one.

Link copied to clipboard

Returns the current item in @back_forward_list.

Link copied to clipboard

Returns the item that follows the current item.

Link copied to clipboard
fun getForwardList(): <Error class: unknown class>

Obtain the list of items following the current one.

Link copied to clipboard
fun getForwardListWithLimit(limit: <Error class: unknown class>): <Error class: unknown class>

Obtain a list up to some number of items following the current one.

Link copied to clipboard
fun getLength(): <Error class: unknown class>

Obtain the amount of items in the list.

Link copied to clipboard
fun getNthItem(index: <Error class: unknown class>): BackForwardListItem?

Returns the item at a given index relative to the current item.