Molybden API
Loading...
Searching...
No Matches
molybden::NavigationEvents Class Reference

A class that contains all navigation events. More...

#include <navigation_events.hpp>

Inheritance diagram for molybden::NavigationEvents:
molybden::Navigation

Public Attributes

Event< NavigationStartedonNavigationStarted
 Invoked when a navigation has been started.
 
Event< NavigationFinishedonNavigationFinished
 Invoked when a navigation has been finished.
 
Event< NavigationRedirectedonNavigationRedirected
 Invoked when a navigation has encountered a server redirect.
 
Event< NavigationStoppedonNavigationStopped
 Invoked when a navigation has been stopped.
 
Event< LoadProgressChangedonLoadProgressChanged
 Invoked when the web page loading progress has been changed.
 
Event< FrameLoadFailedonFrameLoadFailed
 Invoked when the frame load has been failed.
 
Event< FrameLoadFinishedonFrameLoadFinished
 Invoked when the frame load has been finished.
 
Event< FrameDocumentLoadFinishedonFrameDocumentLoadFinished
 Invoked when the frame document load has been finished.
 
Event< LoadStartedonLoadStarted
 Invoked when the load has been started.
 
Event< LoadFinishedonLoadFinished
 Invoked when the load has been finished.
 

Detailed Description

A class that contains all navigation events.

Member Data Documentation

◆ onFrameDocumentLoadFinished

Event<FrameDocumentLoadFinished> molybden::NavigationEvents::onFrameDocumentLoadFinished

Invoked when the frame document load has been finished.

At this point, deferred scripts were executed, and content scripts marked "document_end" get injected into the frame.

Use the following approach to subscribe to receiving the event:

navigation->onFrameDocumentLoadFinished += [](const FrameDocumentLoadFinished& event) {};
The NavigationEvents::onFrameDocumentLoadFinished event arguments.
Definition navigation_events.hpp:190

◆ onFrameLoadFailed

Event<FrameLoadFailed> molybden::NavigationEvents::onFrameLoadFailed

Invoked when the frame load has been failed.

Use the following approach to subscribe to receiving the event:

navigation->onFrameLoadFailed += [](const FrameLoadFailed& event) {};
The NavigationEvents::onFrameLoadFailed event arguments.
Definition navigation_events.hpp:145

◆ onFrameLoadFinished

Event<FrameLoadFinished> molybden::NavigationEvents::onFrameLoadFinished

Invoked when the frame load has been finished.

Use the following approach to subscribe to receiving the event:

navigation->onFrameLoadFinished += [](const FrameLoadFinished& event) {};
The NavigationEvents::onFrameLoadFinished event arguments.
Definition navigation_events.hpp:170

◆ onLoadFinished

Event<LoadFinished> molybden::NavigationEvents::onLoadFinished

Invoked when the load has been finished.

This event corresponds to the moment when the spinner of the tab stops spinning.

Use the following approach to subscribe to receiving the event:

navigation->onLoadFinished += [](const LoadFinished& event) {};
The NavigationEvents::onLoadFinished event arguments.
Definition navigation_events.hpp:215

◆ onLoadProgressChanged

Event<LoadProgressChanged> molybden::NavigationEvents::onLoadProgressChanged

Invoked when the web page loading progress has been changed.

Use the following approach to subscribe to receiving the event:

navigation->onLoadProgressChanged += [](const LoadProgressChanged& event) {};
The NavigationEvents::onLoadProgressChanged event arguments.
Definition navigation_events.hpp:129

◆ onLoadStarted

Event<LoadStarted> molybden::NavigationEvents::onLoadStarted

Invoked when the load has been started.

This event corresponds to the moment when the spinner of the tab starts spinning.

Use the following approach to subscribe to receiving the event:

navigation->onLoadStarted += [](const LoadStarted& event) {};
The NavigationEvents::onLoadStarted event arguments.
Definition navigation_events.hpp:205

◆ onNavigationFinished

Event<NavigationFinished> molybden::NavigationEvents::onNavigationFinished

Invoked when a navigation has been finished.

This happens when a navigation is committed, aborted, or replaced by a new one.

Use the following approach to subscribe to receiving the event:

navigation->onNavigationFinished += [](const NavigationFinished& event) {};
The NavigationEvents::onNavigationFinished event arguments.
Definition navigation_events.hpp:47

◆ onNavigationRedirected

Event<NavigationRedirected> molybden::NavigationEvents::onNavigationRedirected

Invoked when a navigation has encountered a server redirect.

Use the following approach to subscribe to receiving the event:

navigation->onNavigationRedirected += [](const NavigationRedirected& event) {};
The NavigationEvents::onNavigationRedirected event arguments.
Definition navigation_events.hpp:104

◆ onNavigationStarted

Event<NavigationStarted> molybden::NavigationEvents::onNavigationStarted

Invoked when a navigation has been started.

This is also fired by same-document navigations, such as fragment navigations or pushState/replaceState, which will not result in a document change. To filter these out, use the NavigationStartedArgs::is_same_document property.

More than one navigation can be ongoing in a single frame at the same time (including the main frame). There is no guarantee that OnNavigationFinished will be fired for any particular navigation before this event is called on the next.

Use the following approach to subscribe to receiving the event:

navigation->onNavigationStarted += [](const NavigationStarted& event) {};
The NavigationEvents::onNavigationStarted event arguments.
Definition navigation_events.hpp:21

◆ onNavigationStopped

Event<NavigationStopped> molybden::NavigationEvents::onNavigationStopped

Invoked when a navigation has been stopped.

Use the following approach to subscribe to receiving the event:

navigation->onNavigationStopped += [](const NavigationStopped& event) {};
The NavigationEvents::onNavigationStopped event arguments.
Definition navigation_events.hpp:119

The documentation for this class was generated from the following file: