Share via


IWebViewControl.ScriptNotify Evento

Definizione

Si verifica quando il contenuto contenuto contenuto in IWebViewControl passa una stringa all'applicazione usando 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) 

Tipo evento

Commenti

Una pagina HTML ospitata può generare l'evento ScriptNotify nell'app UWP quando la pagina chiama window.external.notify e passa un parametro stringa.

Si applica a