Trait windows::Web::UI::IWebViewControl_Impl

pub trait IWebViewControl_Impl: Sized {
Show 57 methods // Required methods fn Source(&self) -> Result<Uri>; fn SetSource(&self, source: Option<&Uri>) -> Result<()>; fn DocumentTitle(&self) -> Result<HSTRING>; fn CanGoBack(&self) -> Result<bool>; fn CanGoForward(&self) -> Result<bool>; fn SetDefaultBackgroundColor(&self, value: &Color) -> Result<()>; fn DefaultBackgroundColor(&self) -> Result<Color>; fn ContainsFullScreenElement(&self) -> Result<bool>; fn Settings(&self) -> Result<WebViewControlSettings>; fn DeferredPermissionRequests( &self, ) -> Result<IVectorView<WebViewControlDeferredPermissionRequest>>; fn GoForward(&self) -> Result<()>; fn GoBack(&self) -> Result<()>; fn Refresh(&self) -> Result<()>; fn Stop(&self) -> Result<()>; fn Navigate(&self, source: Option<&Uri>) -> Result<()>; fn NavigateToString(&self, text: &HSTRING) -> Result<()>; fn NavigateToLocalStreamUri( &self, source: Option<&Uri>, streamresolver: Option<&IUriToStreamResolver>, ) -> Result<()>; fn NavigateWithHttpRequestMessage( &self, requestmessage: Option<&HttpRequestMessage>, ) -> Result<()>; fn InvokeScriptAsync( &self, scriptname: &HSTRING, arguments: Option<&IIterable<HSTRING>>, ) -> Result<IAsyncOperation<HSTRING>>; fn CapturePreviewToStreamAsync( &self, stream: Option<&IRandomAccessStream>, ) -> Result<IAsyncAction>; fn CaptureSelectedContentToDataPackageAsync( &self, ) -> Result<IAsyncOperation<DataPackage>>; fn BuildLocalStreamUri( &self, contentidentifier: &HSTRING, relativepath: &HSTRING, ) -> Result<Uri>; fn GetDeferredPermissionRequestById( &self, id: u32, result: &mut Option<WebViewControlDeferredPermissionRequest>, ) -> Result<()>; fn NavigationStarting( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveNavigationStarting( &self, token: &EventRegistrationToken, ) -> Result<()>; fn ContentLoading( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveContentLoading(&self, token: &EventRegistrationToken) -> Result<()>; fn DOMContentLoaded( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveDOMContentLoaded( &self, token: &EventRegistrationToken, ) -> Result<()>; fn NavigationCompleted( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveNavigationCompleted( &self, token: &EventRegistrationToken, ) -> Result<()>; fn FrameNavigationStarting( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveFrameNavigationStarting( &self, token: &EventRegistrationToken, ) -> Result<()>; fn FrameContentLoading( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveFrameContentLoading( &self, token: &EventRegistrationToken, ) -> Result<()>; fn FrameDOMContentLoaded( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveFrameDOMContentLoaded( &self, token: &EventRegistrationToken, ) -> Result<()>; fn FrameNavigationCompleted( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveFrameNavigationCompleted( &self, token: &EventRegistrationToken, ) -> Result<()>; fn ScriptNotify( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveScriptNotify(&self, token: &EventRegistrationToken) -> Result<()>; fn LongRunningScriptDetected( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlLongRunningScriptDetectedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveLongRunningScriptDetected( &self, token: &EventRegistrationToken, ) -> Result<()>; fn UnsafeContentWarningDisplaying( &self, handler: Option<&TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<EventRegistrationToken>; fn RemoveUnsafeContentWarningDisplaying( &self, token: &EventRegistrationToken, ) -> Result<()>; fn UnviewableContentIdentified( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveUnviewableContentIdentified( &self, token: &EventRegistrationToken, ) -> Result<()>; fn PermissionRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlPermissionRequestedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemovePermissionRequested( &self, token: &EventRegistrationToken, ) -> Result<()>; fn UnsupportedUriSchemeIdentified( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveUnsupportedUriSchemeIdentified( &self, token: &EventRegistrationToken, ) -> Result<()>; fn NewWindowRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveNewWindowRequested( &self, token: &EventRegistrationToken, ) -> Result<()>; fn ContainsFullScreenElementChanged( &self, handler: Option<&TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<EventRegistrationToken>; fn RemoveContainsFullScreenElementChanged( &self, token: &EventRegistrationToken, ) -> Result<()>; fn WebResourceRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlWebResourceRequestedEventArgs>>, ) -> Result<EventRegistrationToken>; fn RemoveWebResourceRequested( &self, token: &EventRegistrationToken, ) -> Result<()>;
}

Required Methods§

fn Source(&self) -> Result<Uri>

fn SetSource(&self, source: Option<&Uri>) -> Result<()>

fn DocumentTitle(&self) -> Result<HSTRING>

fn CanGoBack(&self) -> Result<bool>

fn CanGoForward(&self) -> Result<bool>

fn SetDefaultBackgroundColor(&self, value: &Color) -> Result<()>

fn DefaultBackgroundColor(&self) -> Result<Color>

fn ContainsFullScreenElement(&self) -> Result<bool>

fn Settings(&self) -> Result<WebViewControlSettings>

fn DeferredPermissionRequests( &self, ) -> Result<IVectorView<WebViewControlDeferredPermissionRequest>>

fn GoForward(&self) -> Result<()>

fn GoBack(&self) -> Result<()>

fn Refresh(&self) -> Result<()>

fn Stop(&self) -> Result<()>

fn Navigate(&self, source: Option<&Uri>) -> Result<()>

fn NavigateToString(&self, text: &HSTRING) -> Result<()>

fn NavigateToLocalStreamUri( &self, source: Option<&Uri>, streamresolver: Option<&IUriToStreamResolver>, ) -> Result<()>

fn NavigateWithHttpRequestMessage( &self, requestmessage: Option<&HttpRequestMessage>, ) -> Result<()>

fn InvokeScriptAsync( &self, scriptname: &HSTRING, arguments: Option<&IIterable<HSTRING>>, ) -> Result<IAsyncOperation<HSTRING>>

fn CapturePreviewToStreamAsync( &self, stream: Option<&IRandomAccessStream>, ) -> Result<IAsyncAction>

fn CaptureSelectedContentToDataPackageAsync( &self, ) -> Result<IAsyncOperation<DataPackage>>

fn BuildLocalStreamUri( &self, contentidentifier: &HSTRING, relativepath: &HSTRING, ) -> Result<Uri>

fn GetDeferredPermissionRequestById( &self, id: u32, result: &mut Option<WebViewControlDeferredPermissionRequest>, ) -> Result<()>

fn NavigationStarting( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveNavigationStarting(&self, token: &EventRegistrationToken) -> Result<()>

fn ContentLoading( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveContentLoading(&self, token: &EventRegistrationToken) -> Result<()>

fn DOMContentLoaded( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveDOMContentLoaded(&self, token: &EventRegistrationToken) -> Result<()>

fn NavigationCompleted( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveNavigationCompleted( &self, token: &EventRegistrationToken, ) -> Result<()>

fn FrameNavigationStarting( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveFrameNavigationStarting( &self, token: &EventRegistrationToken, ) -> Result<()>

fn FrameContentLoading( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlContentLoadingEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveFrameContentLoading( &self, token: &EventRegistrationToken, ) -> Result<()>

fn FrameDOMContentLoaded( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlDOMContentLoadedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveFrameDOMContentLoaded( &self, token: &EventRegistrationToken, ) -> Result<()>

fn FrameNavigationCompleted( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNavigationCompletedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveFrameNavigationCompleted( &self, token: &EventRegistrationToken, ) -> Result<()>

fn ScriptNotify( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlScriptNotifyEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveScriptNotify(&self, token: &EventRegistrationToken) -> Result<()>

fn LongRunningScriptDetected( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlLongRunningScriptDetectedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveLongRunningScriptDetected( &self, token: &EventRegistrationToken, ) -> Result<()>

fn UnsafeContentWarningDisplaying( &self, handler: Option<&TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<EventRegistrationToken>

fn RemoveUnsafeContentWarningDisplaying( &self, token: &EventRegistrationToken, ) -> Result<()>

fn UnviewableContentIdentified( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveUnviewableContentIdentified( &self, token: &EventRegistrationToken, ) -> Result<()>

fn PermissionRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlPermissionRequestedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemovePermissionRequested( &self, token: &EventRegistrationToken, ) -> Result<()>

fn UnsupportedUriSchemeIdentified( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveUnsupportedUriSchemeIdentified( &self, token: &EventRegistrationToken, ) -> Result<()>

fn NewWindowRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveNewWindowRequested(&self, token: &EventRegistrationToken) -> Result<()>

fn ContainsFullScreenElementChanged( &self, handler: Option<&TypedEventHandler<IWebViewControl, IInspectable>>, ) -> Result<EventRegistrationToken>

fn RemoveContainsFullScreenElementChanged( &self, token: &EventRegistrationToken, ) -> Result<()>

fn WebResourceRequested( &self, handler: Option<&TypedEventHandler<IWebViewControl, WebViewControlWebResourceRequestedEventArgs>>, ) -> Result<EventRegistrationToken>

fn RemoveWebResourceRequested( &self, token: &EventRegistrationToken, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§