IWebViewControl.ScriptNotify イベント

定義

IWebViewControl に含まれるコンテンツが JavaScript を使用してアプリケーションに文字列を渡したときに発生します。

// Register
event_token ScriptNotify(TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IWebViewControl::ScriptNotify_revoker ScriptNotify(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs const&> const& handler) const;
event TypedEventHandler<IWebViewControl,WebViewControlScriptNotifyEventArgs> ScriptNotify;
function onScriptNotify(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("scriptnotify", onScriptNotify);
iWebViewControl.removeEventListener("scriptnotify", onScriptNotify);
- or -
iWebViewControl.onscriptnotify = onScriptNotify;
Event ScriptNotify As TypedEventHandler(Of IWebViewControl, WebViewControlScriptNotifyEventArgs) 

イベントの種類

注釈

ホストされた HTML ページは、ページが window.external.notify を呼び出し、文字列パラメーターを渡したときに、UWP アプリで ScriptNotify イベントを発生させることができます。

適用対象