History

abstract external class History (source)

Platform and version requirements: JS

Exposes the JavaScript History to Kotlin

Constructors

<init>

History()

Exposes the JavaScript History to Kotlin

Properties

length

open val length: Int

scrollRestoration

open var scrollRestoration: ScrollRestoration

state

open val state: Any?

Functions

back

fun back()

forward

fun forward()

go

fun go(delta: Int = definedExternally)

pushState

fun pushState(
    data: Any?,
    title: String,
    url: String? = definedExternally)

replaceState

fun replaceState(
    data: Any?,
    title: String,
    url: String? = definedExternally)

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.