ICoreWebView2_9

Undocumented in source.

Members

Functions

CloseDefaultDownloadDialog
HRESULT CloseDefaultDownloadDialog()

Close the default download dialog. Calling this method raises the IsDefaultDownloadDialogOpenChanged event if the dialog was open. No effect if the dialog is already closed.

OpenDefaultDownloadDialog
HRESULT OpenDefaultDownloadDialog()

Open the default download dialog. If the dialog is opened before there are recent downloads, the dialog shows all past downloads for the current profile. Otherwise, the dialog shows only the recent downloads with a "See more" button for past downloads. Calling this method raises the IsDefaultDownloadDialogOpenChanged event if the dialog was closed. No effect if the dialog is already open.

add_IsDefaultDownloadDialogOpenChanged
HRESULT add_IsDefaultDownloadDialogOpenChanged(ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler handler, EventRegistrationToken* token)

Raised when the IsDefaultDownloadDialogOpen property changes. This event comes after the DownloadStarting event. Setting the Handled property on the DownloadStartingEventArgs disables the default download dialog and ensures that this event is never raised.

get_DefaultDownloadDialogCornerAlignment
HRESULT get_DefaultDownloadDialogCornerAlignment(COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT* value)

Get the default download dialog corner alignment.

get_DefaultDownloadDialogMargin
HRESULT get_DefaultDownloadDialogMargin(POINT* value)

Get the default download dialog margin.

get_IsDefaultDownloadDialogOpen
HRESULT get_IsDefaultDownloadDialogOpen(BOOL* value)

TRUE if the default download dialog is currently open. The value of this property changes only when the default download dialog is explicitly opened or closed. Hiding the WebView implicitly hides the dialog, but does not change the value of this property.

put_DefaultDownloadDialogCornerAlignment
HRESULT put_DefaultDownloadDialogCornerAlignment(COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT value)

Set the default download dialog corner alignment. The dialog can be aligned to any of the WebView corners (see COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT). When the WebView or dialog changes size, the dialog keeps its position relative to the corner. The dialog may become partially or completely outside of the WebView bounds if the WebView is small enough. Set the margin relative to the corner with the DefaultDownloadDialogMargin property. The corner alignment and margin should be set during initialization to ensure that they are correctly applied when the layout is first computed, otherwise they will not take effect until the next time the WebView position or size is updated.

put_DefaultDownloadDialogMargin
HRESULT put_DefaultDownloadDialogMargin(POINT value)

Set the default download dialog margin relative to the WebView corner specified by DefaultDownloadDialogCornerAlignment. The margin is a point that describes the vertical and horizontal distances between the chosen WebView corner and the default download dialog corner nearest to it. Positive values move the dialog towards the center of the WebView from the chosen WebView corner, and negative values move the dialog away from it. Use (0, 0) to align the dialog to the WebView corner with no margin. The corner alignment and margin should be set during initialization to ensure that they are correctly applied when the layout is first computed, otherwise they will not take effect until the next time the WebView position or size is updated.

remove_IsDefaultDownloadDialogOpenChanged
HRESULT remove_IsDefaultDownloadDialogOpenChanged(EventRegistrationToken token)

Remove an event handler previously added with add_IsDefaultDownloadDialogOpenChanged.

Inherited Members

From ICoreWebView2_8

add_IsMutedChanged
HRESULT add_IsMutedChanged(ICoreWebView2IsMutedChangedEventHandler eventHandler, EventRegistrationToken* token)

Adds an event handler for the IsMutedChanged event. IsMutedChanged is raised when the IsMuted property changes value.

remove_IsMutedChanged
HRESULT remove_IsMutedChanged(EventRegistrationToken token)

Remove an event handler previously added with add_IsMutedChanged.

get_IsMuted
HRESULT get_IsMuted(BOOL* value)

Indicates whether all audio output from this CoreWebView2 is muted or not.

put_IsMuted
HRESULT put_IsMuted(BOOL value)

Sets the IsMuted property.

add_IsDocumentPlayingAudioChanged
HRESULT add_IsDocumentPlayingAudioChanged(ICoreWebView2IsDocumentPlayingAudioChangedEventHandler eventHandler, EventRegistrationToken* token)

Adds an event handler for the IsDocumentPlayingAudioChanged event. IsDocumentPlayingAudioChanged is raised when the IsDocumentPlayingAudio property changes value.

remove_IsDocumentPlayingAudioChanged
HRESULT remove_IsDocumentPlayingAudioChanged(EventRegistrationToken token)

Remove an event handler previously added with add_IsDocumentPlayingAudioChanged.

get_IsDocumentPlayingAudio
HRESULT get_IsDocumentPlayingAudio(BOOL* value)

Indicates whether any audio output from this CoreWebView2 is playing. This property will be true if audio is playing even if IsMuted is true.

Meta