Jaa


IWebViewControl.UnviewableContentIdentified Event

Definition

Occurs when the IWebViewControl attempts to download an unsupported file.

// Register
event_token UnviewableContentIdentified(TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs const&> const& handler) const;

// Revoke with event_token
void UnviewableContentIdentified(event_token const* cookie) const;

// Revoke with event_revoker
IWebViewControl::UnviewableContentIdentified_revoker UnviewableContentIdentified(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs const&> const& handler) const;
event TypedEventHandler<IWebViewControl,WebViewControlUnviewableContentIdentifiedEventArgs> UnviewableContentIdentified;
function onUnviewableContentIdentified(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("unviewablecontentidentified", onUnviewableContentIdentified);
iWebViewControl.removeEventListener("unviewablecontentidentified", onUnviewableContentIdentified);
- or -
iWebViewControl.onunviewablecontentidentified = onUnviewableContentIdentified;
Event UnviewableContentIdentified As TypedEventHandler(Of IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs) 

Event Type

Remarks

The IWebViewControl cannot host arbitrary file types, but you can handle this event and use the Launcher class to redirect the file to the browser or another app.

Applies to