pub trait ICoreWebView2_Impl: Sized {
Show 58 methods // Required methods fn Settings(&self) -> Result<ICoreWebView2Settings>; fn Source(&self, uri: *mut PWSTR) -> Result<()>; fn Navigate(&self, uri: &PCWSTR) -> Result<()>; fn NavigateToString(&self, htmlcontent: &PCWSTR) -> Result<()>; fn add_NavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_NavigationStarting( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_ContentLoading( &self, eventhandler: Option<&ICoreWebView2ContentLoadingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_ContentLoading( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_SourceChanged( &self, eventhandler: Option<&ICoreWebView2SourceChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_SourceChanged(&self, token: &EventRegistrationToken) -> Result<()>; fn add_HistoryChanged( &self, eventhandler: Option<&ICoreWebView2HistoryChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_HistoryChanged( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_NavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_NavigationCompleted( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_FrameNavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_FrameNavigationStarting( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_FrameNavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_FrameNavigationCompleted( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_ScriptDialogOpening( &self, eventhandler: Option<&ICoreWebView2ScriptDialogOpeningEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_ScriptDialogOpening( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_PermissionRequested( &self, eventhandler: Option<&ICoreWebView2PermissionRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_PermissionRequested( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_ProcessFailed( &self, eventhandler: Option<&ICoreWebView2ProcessFailedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_ProcessFailed(&self, token: &EventRegistrationToken) -> Result<()>; fn AddScriptToExecuteOnDocumentCreated( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler> ) -> Result<()>; fn RemoveScriptToExecuteOnDocumentCreated(&self, id: &PCWSTR) -> Result<()>; fn ExecuteScript( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2ExecuteScriptCompletedHandler> ) -> Result<()>; fn CapturePreview( &self, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: Option<&IStream>, handler: Option<&ICoreWebView2CapturePreviewCompletedHandler> ) -> Result<()>; fn Reload(&self) -> Result<()>; fn PostWebMessageAsJson(&self, webmessageasjson: &PCWSTR) -> Result<()>; fn PostWebMessageAsString(&self, webmessageasstring: &PCWSTR) -> Result<()>; fn add_WebMessageReceived( &self, handler: Option<&ICoreWebView2WebMessageReceivedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_WebMessageReceived( &self, token: &EventRegistrationToken ) -> Result<()>; fn CallDevToolsProtocolMethod( &self, methodname: &PCWSTR, parametersasjson: &PCWSTR, handler: Option<&ICoreWebView2CallDevToolsProtocolMethodCompletedHandler> ) -> Result<()>; fn BrowserProcessId(&self, value: *mut u32) -> Result<()>; fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<()>; fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<()>; fn GoBack(&self) -> Result<()>; fn GoForward(&self) -> Result<()>; fn GetDevToolsProtocolEventReceiver( &self, eventname: &PCWSTR ) -> Result<ICoreWebView2DevToolsProtocolEventReceiver>; fn Stop(&self) -> Result<()>; fn add_NewWindowRequested( &self, eventhandler: Option<&ICoreWebView2NewWindowRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_NewWindowRequested( &self, token: &EventRegistrationToken ) -> Result<()>; fn add_DocumentTitleChanged( &self, eventhandler: Option<&ICoreWebView2DocumentTitleChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_DocumentTitleChanged( &self, token: &EventRegistrationToken ) -> Result<()>; fn DocumentTitle(&self, title: *mut PWSTR) -> Result<()>; fn AddHostObjectToScript( &self, name: &PCWSTR, object: *mut VARIANT ) -> Result<()>; fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<()>; fn OpenDevToolsWindow(&self) -> Result<()>; fn add_ContainsFullScreenElementChanged( &self, eventhandler: Option<&ICoreWebView2ContainsFullScreenElementChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_ContainsFullScreenElementChanged( &self, token: &EventRegistrationToken ) -> Result<()>; fn ContainsFullScreenElement( &self, containsfullscreenelement: *mut BOOL ) -> Result<()>; fn add_WebResourceRequested( &self, eventhandler: Option<&ICoreWebView2WebResourceRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_WebResourceRequested( &self, token: &EventRegistrationToken ) -> Result<()>; fn AddWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<()>; fn RemoveWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<()>; fn add_WindowCloseRequested( &self, eventhandler: Option<&ICoreWebView2WindowCloseRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>; fn remove_WindowCloseRequested( &self, token: &EventRegistrationToken ) -> Result<()>;
}

Required Methods§

source

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

source

fn Source(&self, uri: *mut PWSTR) -> Result<()>

source

fn Navigate(&self, uri: &PCWSTR) -> Result<()>

source

fn NavigateToString(&self, htmlcontent: &PCWSTR) -> Result<()>

source

fn add_NavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_ContentLoading( &self, eventhandler: Option<&ICoreWebView2ContentLoadingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_SourceChanged( &self, eventhandler: Option<&ICoreWebView2SourceChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_HistoryChanged( &self, eventhandler: Option<&ICoreWebView2HistoryChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_NavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_FrameNavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_FrameNavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_ScriptDialogOpening( &self, eventhandler: Option<&ICoreWebView2ScriptDialogOpeningEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_PermissionRequested( &self, eventhandler: Option<&ICoreWebView2PermissionRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_ProcessFailed( &self, eventhandler: Option<&ICoreWebView2ProcessFailedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn AddScriptToExecuteOnDocumentCreated( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler> ) -> Result<()>

source

fn RemoveScriptToExecuteOnDocumentCreated(&self, id: &PCWSTR) -> Result<()>

source

fn ExecuteScript( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2ExecuteScriptCompletedHandler> ) -> Result<()>

source

fn CapturePreview( &self, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: Option<&IStream>, handler: Option<&ICoreWebView2CapturePreviewCompletedHandler> ) -> Result<()>

source

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

source

fn PostWebMessageAsJson(&self, webmessageasjson: &PCWSTR) -> Result<()>

source

fn PostWebMessageAsString(&self, webmessageasstring: &PCWSTR) -> Result<()>

source

fn add_WebMessageReceived( &self, handler: Option<&ICoreWebView2WebMessageReceivedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn CallDevToolsProtocolMethod( &self, methodname: &PCWSTR, parametersasjson: &PCWSTR, handler: Option<&ICoreWebView2CallDevToolsProtocolMethodCompletedHandler> ) -> Result<()>

source

fn BrowserProcessId(&self, value: *mut u32) -> Result<()>

source

fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<()>

source

fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<()>

source

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

source

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

source

fn GetDevToolsProtocolEventReceiver( &self, eventname: &PCWSTR ) -> Result<ICoreWebView2DevToolsProtocolEventReceiver>

source

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

source

fn add_NewWindowRequested( &self, eventhandler: Option<&ICoreWebView2NewWindowRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn add_DocumentTitleChanged( &self, eventhandler: Option<&ICoreWebView2DocumentTitleChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn DocumentTitle(&self, title: *mut PWSTR) -> Result<()>

source

fn AddHostObjectToScript( &self, name: &PCWSTR, object: *mut VARIANT ) -> Result<()>

source

fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<()>

source

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

source

fn add_ContainsFullScreenElementChanged( &self, eventhandler: Option<&ICoreWebView2ContainsFullScreenElementChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn ContainsFullScreenElement( &self, containsfullscreenelement: *mut BOOL ) -> Result<()>

source

fn add_WebResourceRequested( &self, eventhandler: Option<&ICoreWebView2WebResourceRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

source

fn AddWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<()>

source

fn RemoveWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<()>

source

fn add_WindowCloseRequested( &self, eventhandler: Option<&ICoreWebView2WindowCloseRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<()>

source

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

Implementors§