PageState


@AnyThread
public final class PageState


This class serves as an immutable snapshot of a Page instance at a certain point in time, captured every time a callback (e.g. onPageLoadEvent) is called.

Note: Do not use PageState as a key to connect callbacks, use Page instead from getPage

Summary

Public methods

@NonNull Page

Returns the page linked to this PageState snapshot

@NonNull String

Returns the URL associated with this PageState instance.

Public methods

getPage

public @NonNull Page getPage()

Returns the page linked to this PageState snapshot

getUrl

public @NonNull String getUrl()

Returns the URL associated with this PageState instance.