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 이벤트를 발생시킬 수 있습니다.

적용 대상