WebUIView.ScriptNotify Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the content contained in the control passes a string to the app using 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
Event Type
Implements
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro