Compartilhar via


WebView.NavigationCompleted Evento

Definição

Ocorre quando o WebView termina de carregar o conteúdo atual ou se a navegação falhou.

// Register
event_token NavigationCompleted(TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;

// Revoke with event_token
void NavigationCompleted(event_token const* cookie) const;

// Revoke with event_revoker
WebView::NavigationCompleted_revoker NavigationCompleted(auto_revoke_t, TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewNavigationCompletedEventArgs> NavigationCompleted;
function onNavigationCompleted(eventArgs) { /* Your code */ }
webView.addEventListener("navigationcompleted", onNavigationCompleted);
webView.removeEventListener("navigationcompleted", onNavigationCompleted);
- or -
webView.onnavigationcompleted = onNavigationCompleted;
Public Custom Event NavigationCompleted As TypedEventHandler(Of WebView, WebViewNavigationCompletedEventArgs) 
<WebView NavigationCompleted="eventhandler"/>

Tipo de evento

Comentários

Para determinar se a navegação falhou, verifique as propriedades IsSuccess e WebErrorStatus da classe WebViewNavigationCompletedEventArgs.

Os eventos de navegação do WebView ocorrem na seguinte ordem:

Eventos semelhantes ocorrem na mesma ordem para cada iframe no conteúdo do WebView :

Aplica-se a

Confira também