The PageRevealEvent() constructor creates a new PageRevealEvent object instance.
new PageRevealEvent(type, init)typeA string representing the type of event. In the case of PageRevealEvent this is always pagereveal.
initAn object containing the following properties:
viewTransition OptionalA ViewTransition object representing the active view transition for the related navigation. Defaults to null if there is no active view transition.
A developer would not use this constructor manually. A new PageRevealEvent object is constructed when a handler is invoked as a result of the pagereveal event firing.