WebView2.NavigationCompleted イベント

定義

WebView2 が完全に読み込まれた (body.onload が発生しました) か、読み込みがエラーで停止したときに発生します。

// Register
event_token NavigationCompleted(TypedEventHandler<WebView2, CoreWebView2NavigationCompletedEventArgs const&> const& handler) const;

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

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

イベントの種類

適用対象