WebUIView.ScriptNotify 事件

定义

当 控件中包含的内容使用 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
WebUIView::ScriptNotify_revoker ScriptNotify(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,WebViewControlScriptNotifyEventArgs> ScriptNotify;
function onScriptNotify(eventArgs) { /* Your code */ }
webUIView.addEventListener("scriptnotify", onScriptNotify);
webUIView.removeEventListener("scriptnotify", onScriptNotify);
- or -
webUIView.onscriptnotify = onScriptNotify;
Public Custom Event ScriptNotify As TypedEventHandler(Of IWebViewControl, WebViewControlScriptNotifyEventArgs) Implements ScriptNotify

事件类型

实现

适用于