class NavigationController

Defined at line 12856 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h

Provides methods for controlling and querying the navigation state of a [`Frame`].

Public Methods

void ~NavigationController ()
void LoadUrl (::std::string url, ::fuchsia::web::LoadUrlParams params, LoadUrlCallback callback)

Tells the [`Frame`] to navigate to a `url`.

- `url`: The address to navigate to.

- `params`: Additional parameters that affect how the resource will be loaded (e.g.

cookies, HTTP headers, etc.)

If an error occurred, the [`NavigationControllerError`] will be set to one of these values:

- `INVALID_URL`: The `url` parameter is invalid.

- `INVALID_HEADER`: At least one of the headers in [`LoadUrlParams.headers`] is invalid.

void GoBack ()

Tells the [`Frame`] to navigate to the previous page in its history, if any.

void GoForward ()

Tells the [`Frame`] to navigate to the next page in its history, if any.

void Stop ()

Tells the [`Frame`] to stop the current navigation if a navigation is ongoing.

void Reload (::fuchsia::web::ReloadType type)

Tells the [`Frame`] to reload the current page.