PageSwapEvent Class

https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pageswapevent-interface: the pageswap event, fired at the window of a document that is about to be replaced by a navigation.

public sealed class PageSwapEvent : Event
Inheritance
Event PageSwapEvent

Constructors

NameDescription
PageSwapEvent(string, PageSwapEventInit?)Creates a page swap event with the given type and initialization dictionary.

PageSwapEvent(string, PageSwapEventInit?)

PageEvents.cs

Creates a page swap event with the given type and initialization dictionary.

public PageSwapEvent(string type, PageSwapEventInit? eventInitDict = null)

Properties

NameDescription
ActivationGets the activation of the navigation (the entries and the type of the navigation), or null for a cross-origin navigation.
ViewTransitionGets the view transition of the navigation, or null when the navigation has no cross-document view transition.

Activation

PageEvents.cs

Gets the activation of the navigation (the entries and the type of the navigation), or null for a cross-origin navigation.

public NavigationActivation? Activation { get; }

ViewTransition

PageEvents.cs

Gets the view transition of the navigation, or null when the navigation has no cross-document view transition.

public ViewTransition? ViewTransition { get; }