共用方式為


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

事件類型

實作

適用於