Class WebView
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public class WebView : WebViewBase, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
WebView
- Implements
- Inherited Members
Constructors
WebView()
public WebView()
WebView(params ConstructArgument[])
protected WebView(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
WebView(IntPtr, bool)
protected WebView(IntPtr ptr, bool ownedRef)
Parameters
Fields
AuthenticateSignal
Signal Descriptor for OnAuthenticate.
public static readonly ReturningSignal<WebView, WebView.AuthenticateSignalArgs, bool> AuthenticateSignal
Field Value
AutomationPresentationTypePropertyDefinition
public static readonly Property<AutomationBrowsingContextPresentation, WebView> AutomationPresentationTypePropertyDefinition
Field Value
CameraCaptureStatePropertyDefinition
public static readonly Property<MediaCaptureState, WebView> CameraCaptureStatePropertyDefinition
Field Value
CloseSignal
Signal Descriptor for OnClose.
public static readonly Signal<WebView> CloseSignal
Field Value
ContextMenuDismissedSignal
Signal Descriptor for OnContextMenuDismissed.
public static readonly Signal<WebView> ContextMenuDismissedSignal
Field Value
ContextMenuSignal
Signal Descriptor for OnContextMenu.
public static readonly ReturningSignal<WebView, WebView.ContextMenuSignalArgs, bool> ContextMenuSignal
Field Value
CreateSignal
Signal Descriptor for OnCreate.
public static readonly ReturningSignal<WebView, WebView.CreateSignalArgs, Widget> CreateSignal
Field Value
DecidePolicySignal
Signal Descriptor for OnDecidePolicy.
public static readonly ReturningSignal<WebView, WebView.DecidePolicySignalArgs, bool> DecidePolicySignal
Field Value
DefaultContentSecurityPolicyPropertyDefinition
public static readonly Property<string?, WebView> DefaultContentSecurityPolicyPropertyDefinition
Field Value
DisplayCaptureStatePropertyDefinition
public static readonly Property<MediaCaptureState, WebView> DisplayCaptureStatePropertyDefinition
Field Value
EditablePropertyDefinition
public static readonly Property<bool, WebView> EditablePropertyDefinition
Field Value
EnterFullscreenSignal
Signal Descriptor for OnEnterFullscreen.
public static readonly ReturningSignal<WebView, bool> EnterFullscreenSignal
Field Value
EstimatedLoadProgressPropertyDefinition
public static readonly Property<double, WebView> EstimatedLoadProgressPropertyDefinition
Field Value
FaviconPropertyDefinition
public static readonly Property<Texture?, WebView> FaviconPropertyDefinition
Field Value
InsecureContentDetectedSignal
Signal Descriptor for OnInsecureContentDetected.
public static readonly Signal<WebView, WebView.InsecureContentDetectedSignalArgs> InsecureContentDetectedSignal
Field Value
IsControlledByAutomationPropertyDefinition
public static readonly Property<bool, WebView> IsControlledByAutomationPropertyDefinition
Field Value
IsLoadingPropertyDefinition
public static readonly Property<bool, WebView> IsLoadingPropertyDefinition
Field Value
IsMutedPropertyDefinition
public static readonly Property<bool, WebView> IsMutedPropertyDefinition
Field Value
IsPlayingAudioPropertyDefinition
public static readonly Property<bool, WebView> IsPlayingAudioPropertyDefinition
Field Value
IsWebProcessResponsivePropertyDefinition
public static readonly Property<bool, WebView> IsWebProcessResponsivePropertyDefinition
Field Value
LeaveFullscreenSignal
Signal Descriptor for OnLeaveFullscreen.
public static readonly ReturningSignal<WebView, bool> LeaveFullscreenSignal
Field Value
LoadChangedSignal
Signal Descriptor for OnLoadChanged.
public static readonly Signal<WebView, WebView.LoadChangedSignalArgs> LoadChangedSignal
Field Value
LoadFailedSignal
Signal Descriptor for OnLoadFailed.
public static readonly ReturningSignal<WebView, WebView.LoadFailedSignalArgs, bool> LoadFailedSignal
Field Value
LoadFailedWithTlsErrorsSignal
Signal Descriptor for OnLoadFailedWithTlsErrors.
public static readonly ReturningSignal<WebView, WebView.LoadFailedWithTlsErrorsSignalArgs, bool> LoadFailedWithTlsErrorsSignal
Field Value
MicrophoneCaptureStatePropertyDefinition
public static readonly Property<MediaCaptureState, WebView> MicrophoneCaptureStatePropertyDefinition
Field Value
MouseTargetChangedSignal
Signal Descriptor for OnMouseTargetChanged.
public static readonly Signal<WebView, WebView.MouseTargetChangedSignalArgs> MouseTargetChangedSignal
Field Value
NetworkSessionPropertyDefinition
public static readonly Property<NetworkSession?, WebView> NetworkSessionPropertyDefinition
Field Value
PageIdPropertyDefinition
public static readonly Property<ulong, WebView> PageIdPropertyDefinition
Field Value
PermissionRequestSignal
Signal Descriptor for OnPermissionRequest.
public static readonly ReturningSignal<WebView, WebView.PermissionRequestSignalArgs, bool> PermissionRequestSignal
Field Value
PrintSignal
Signal Descriptor for OnPrint.
public static readonly ReturningSignal<WebView, WebView.PrintSignalArgs, bool> PrintSignal
Field Value
QueryPermissionStateSignal
Signal Descriptor for OnQueryPermissionState.
public static readonly ReturningSignal<WebView, WebView.QueryPermissionStateSignalArgs, bool> QueryPermissionStateSignal
Field Value
ReadyToShowSignal
Signal Descriptor for OnReadyToShow.
public static readonly Signal<WebView> ReadyToShowSignal
Field Value
ResourceLoadStartedSignal
Signal Descriptor for OnResourceLoadStarted.
public static readonly Signal<WebView, WebView.ResourceLoadStartedSignalArgs> ResourceLoadStartedSignal
Field Value
RunAsModalSignal
Signal Descriptor for OnRunAsModal.
public static readonly Signal<WebView> RunAsModalSignal
Field Value
RunColorChooserSignal
Signal Descriptor for OnRunColorChooser.
public static readonly ReturningSignal<WebView, WebView.RunColorChooserSignalArgs, bool> RunColorChooserSignal
Field Value
RunFileChooserSignal
Signal Descriptor for OnRunFileChooser.
public static readonly ReturningSignal<WebView, WebView.RunFileChooserSignalArgs, bool> RunFileChooserSignal
Field Value
ScriptDialogSignal
Signal Descriptor for OnScriptDialog.
public static readonly ReturningSignal<WebView, WebView.ScriptDialogSignalArgs, bool> ScriptDialogSignal
Field Value
SettingsPropertyDefinition
public static readonly Property<Settings?, WebView> SettingsPropertyDefinition
Field Value
ShowNotificationSignal
Signal Descriptor for OnShowNotification.
public static readonly ReturningSignal<WebView, WebView.ShowNotificationSignalArgs, bool> ShowNotificationSignal
Field Value
ShowOptionMenuSignal
Signal Descriptor for OnShowOptionMenu.
public static readonly ReturningSignal<WebView, WebView.ShowOptionMenuSignalArgs, bool> ShowOptionMenuSignal
Field Value
SubmitFormSignal
Signal Descriptor for OnSubmitForm.
public static readonly Signal<WebView, WebView.SubmitFormSignalArgs> SubmitFormSignal
Field Value
TitlePropertyDefinition
public static readonly Property<string?, WebView> TitlePropertyDefinition
Field Value
UriPropertyDefinition
public static readonly Property<string?, WebView> UriPropertyDefinition
Field Value
UserContentManagerPropertyDefinition
public static readonly Property<UserContentManager?, WebView> UserContentManagerPropertyDefinition
Field Value
UserMessageReceivedSignal
Signal Descriptor for OnUserMessageReceived.
public static readonly ReturningSignal<WebView, WebView.UserMessageReceivedSignalArgs, bool> UserMessageReceivedSignal
Field Value
WebContextPropertyDefinition
public static readonly Property<WebContext?, WebView> WebContextPropertyDefinition
Field Value
WebExtensionModePropertyDefinition
public static readonly Property<WebExtensionMode, WebView> WebExtensionModePropertyDefinition
Field Value
WebProcessTerminatedSignal
Signal Descriptor for OnWebProcessTerminated.
public static readonly Signal<WebView, WebView.WebProcessTerminatedSignalArgs> WebProcessTerminatedSignal
Field Value
WebsitePoliciesPropertyDefinition
public static readonly Property<WebsitePolicies?, WebView> WebsitePoliciesPropertyDefinition
Field Value
ZoomLevelPropertyDefinition
public static readonly Property<double, WebView> ZoomLevelPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
AutomationPresentationType
public AutomationBrowsingContextPresentation AutomationPresentationType { get; }
Property Value
CameraCaptureState
public MediaCaptureState CameraCaptureState { get; set; }
Property Value
DefaultContentSecurityPolicy
public string? DefaultContentSecurityPolicy { get; }
Property Value
DisplayCaptureState
public MediaCaptureState DisplayCaptureState { get; set; }
Property Value
Editable
public bool Editable { get; set; }
Property Value
EstimatedLoadProgress
public double EstimatedLoadProgress { get; }
Property Value
Favicon
public Texture? Favicon { get; }
Property Value
IsControlledByAutomation
public bool IsControlledByAutomation { get; }
Property Value
IsLoading
public bool IsLoading { get; }
Property Value
IsMuted
public bool IsMuted { get; set; }
Property Value
IsPlayingAudio
public bool IsPlayingAudio { get; }
Property Value
IsWebProcessResponsive
public bool IsWebProcessResponsive { get; }
Property Value
MicrophoneCaptureState
public MediaCaptureState MicrophoneCaptureState { get; set; }
Property Value
NetworkSession
public NetworkSession? NetworkSession { get; }
Property Value
PageId
public ulong PageId { get; }
Property Value
Settings
public Settings? Settings { set; }
Property Value
Title
public string? Title { get; }
Property Value
Uri
public string? Uri { get; }
Property Value
UserContentManager
public UserContentManager? UserContentManager { get; }
Property Value
WebContext
public WebContext? WebContext { get; }
Property Value
WebExtensionMode
public WebExtensionMode WebExtensionMode { get; }
Property Value
WebsitePolicies
public WebsitePolicies? WebsitePolicies { get; }
Property Value
ZoomLevel
public double ZoomLevel { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
CallAsyncJavascriptFunctionFinish(AsyncResult)
[Version("2.40")]
public Value CallAsyncJavascriptFunctionFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
CanExecuteEditingCommandFinish(AsyncResult)
public bool CanExecuteEditingCommandFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
CanGoBack()
public bool CanGoBack()
Returns
CanGoForward()
public bool CanGoForward()
Returns
CanShowMimeType(string)
public bool CanShowMimeType(string mimeType)
Parameters
mimeType
string
Returns
DownloadUri(string)
public Download DownloadUri(string uri)
Parameters
uri
string
Returns
EvaluateJavascriptAsync(string)
public Task<Value> EvaluateJavascriptAsync(string script)
Parameters
script
string
Returns
EvaluateJavascriptFinish(AsyncResult)
[Version("2.40")]
public Value EvaluateJavascriptFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
ExecuteEditingCommand(string)
public void ExecuteEditingCommand(string command)
Parameters
command
string
ExecuteEditingCommandWithArgument(string, string)
[Version("2.10")]
public void ExecuteEditingCommandWithArgument(string command, string argument)
Parameters
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetAutomationPresentationType()
[Version("2.28")]
public AutomationBrowsingContextPresentation GetAutomationPresentationType()
Returns
GetBackForwardList()
public BackForwardList GetBackForwardList()
Returns
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetCameraCaptureState()
[Version("2.34")]
public MediaCaptureState GetCameraCaptureState()
Returns
GetContext()
public WebContext GetContext()
Returns
GetCustomCharset()
public string GetCustomCharset()
Returns
GetDefaultContentSecurityPolicy()
[Version("2.38")]
public string? GetDefaultContentSecurityPolicy()
Returns
GetDisplayCaptureState()
[Version("2.34")]
public MediaCaptureState GetDisplayCaptureState()
Returns
GetEditorState()
[Version("2.10")]
public EditorState GetEditorState()
Returns
GetEstimatedLoadProgress()
public double GetEstimatedLoadProgress()
Returns
GetFavicon()
public Texture GetFavicon()
Returns
GetFindController()
public FindController GetFindController()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetInputMethodContext()
[Version("2.28")]
public InputMethodContext? GetInputMethodContext()
Returns
GetInspector()
public WebInspector GetInspector()
Returns
GetIsControlledByAutomation()
[Version("2.18")]
public bool GetIsControlledByAutomation()
Returns
GetIsLoading()
public bool GetIsLoading()
Returns
GetIsMuted()
[Version("2.30")]
public bool GetIsMuted()
Returns
GetIsPlayingAudio()
[Version("2.8")]
public bool GetIsPlayingAudio()
Returns
GetIsWebProcessResponsive()
[Version("2.34")]
public bool GetIsWebProcessResponsive()
Returns
GetMainResource()
public WebResource GetMainResource()
Returns
GetMicrophoneCaptureState()
[Version("2.34")]
public MediaCaptureState GetMicrophoneCaptureState()
Returns
GetNetworkSession()
[Version("2.40")]
public NetworkSession GetNetworkSession()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPageId()
public ulong GetPageId()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetSessionState()
[Version("2.12")]
public WebViewSessionState GetSessionState()
Returns
GetSettings()
public Settings GetSettings()
Returns
GetSnapshotFinish(AsyncResult)
public Texture GetSnapshotFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
GetTitle()
public string GetTitle()
Returns
GetUri()
public string GetUri()
Returns
GetUserContentManager()
[Version("2.6")]
public UserContentManager GetUserContentManager()
Returns
GetWebExtensionMode()
[Version("2.38")]
public WebExtensionMode GetWebExtensionMode()
Returns
GetWebsitePolicies()
[Version("2.30")]
public WebsitePolicies GetWebsitePolicies()
Returns
GetWindowProperties()
public WindowProperties GetWindowProperties()
Returns
GetZoomLevel()
public double GetZoomLevel()
Returns
GoBack()
public void GoBack()
GoForward()
public void GoForward()
GoToBackForwardListItem(BackForwardListItem)
public void GoToBackForwardListItem(BackForwardListItem listItem)
Parameters
listItem
BackForwardListItem
IsEditable()
[Version("2.8")]
public bool IsEditable()
Returns
LoadAlternateHtml(string, string, string?)
public void LoadAlternateHtml(string content, string contentUri, string? baseUri)
Parameters
LoadBytes(Bytes, string?, string?, string?)
[Version("2.6")]
public void LoadBytes(Bytes bytes, string? mimeType, string? encoding, string? baseUri)
Parameters
LoadHtml(string, string?)
public void LoadHtml(string content, string? baseUri)
Parameters
LoadPlainText(string)
public void LoadPlainText(string plainText)
Parameters
plainText
string
LoadRequest(URIRequest)
public void LoadRequest(URIRequest request)
Parameters
request
URIRequest
LoadUri(string)
public void LoadUri(string uri)
Parameters
uri
string
New()
public static WebView New()
Returns
Reload()
public void Reload()
ReloadBypassCache()
public void ReloadBypassCache()
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
property
AccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relation
AccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
state
AccessibleState
RestoreSessionState(WebViewSessionState)
[Version("2.12")]
public void RestoreSessionState(WebViewSessionState state)
Parameters
state
WebViewSessionState
SaveFinish(AsyncResult)
public InputStream SaveFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
SaveToFileFinish(AsyncResult)
public bool SaveToFileFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
SendMessageToPageFinish(AsyncResult)
[Version("2.28")]
public UserMessage SendMessageToPageFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parent
AccessiblenextSibling
Accessible
SetBackgroundColor(RGBA)
[Version("2.8")]
public void SetBackgroundColor(RGBA rgba)
Parameters
rgba
RGBA
SetCameraCaptureState(MediaCaptureState)
[Version("2.34")]
public void SetCameraCaptureState(MediaCaptureState state)
Parameters
state
MediaCaptureState
SetCorsAllowlist(string[]?)
[Version("2.34")]
public void SetCorsAllowlist(string[]? allowlist)
Parameters
allowlist
string[]
SetCustomCharset(string?)
public void SetCustomCharset(string? charset)
Parameters
charset
string
SetDisplayCaptureState(MediaCaptureState)
[Version("2.34")]
public void SetDisplayCaptureState(MediaCaptureState state)
Parameters
state
MediaCaptureState
SetEditable(bool)
[Version("2.8")]
public void SetEditable(bool editable)
Parameters
editable
bool
SetInputMethodContext(InputMethodContext?)
[Version("2.28")]
public void SetInputMethodContext(InputMethodContext? context)
Parameters
context
InputMethodContext
SetIsMuted(bool)
[Version("2.30")]
public void SetIsMuted(bool muted)
Parameters
muted
bool
SetMicrophoneCaptureState(MediaCaptureState)
[Version("2.34")]
public void SetMicrophoneCaptureState(MediaCaptureState state)
Parameters
state
MediaCaptureState
SetSettings(Settings)
public void SetSettings(Settings settings)
Parameters
settings
Settings
SetZoomLevel(double)
public void SetZoomLevel(double zoomLevel)
Parameters
zoomLevel
double
StopLoading()
public void StopLoading()
TerminateWebProcess()
[Version("2.34")]
public void TerminateWebProcess()
TryClose()
[Version("2.12")]
public void TryClose()
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnAuthenticate
public event ReturningSignalHandler<WebView, WebView.AuthenticateSignalArgs, bool> OnAuthenticate
Event Type
OnClose
public event SignalHandler<WebView> OnClose
Event Type
OnContextMenu
public event ReturningSignalHandler<WebView, WebView.ContextMenuSignalArgs, bool> OnContextMenu
Event Type
OnContextMenuDismissed
public event SignalHandler<WebView> OnContextMenuDismissed
Event Type
OnCreate
public event ReturningSignalHandler<WebView, WebView.CreateSignalArgs, Widget> OnCreate
Event Type
OnDecidePolicy
public event ReturningSignalHandler<WebView, WebView.DecidePolicySignalArgs, bool> OnDecidePolicy
Event Type
OnEnterFullscreen
public event ReturningSignalHandler<WebView, bool> OnEnterFullscreen
Event Type
OnInsecureContentDetected
public event SignalHandler<WebView, WebView.InsecureContentDetectedSignalArgs> OnInsecureContentDetected
Event Type
OnLeaveFullscreen
public event ReturningSignalHandler<WebView, bool> OnLeaveFullscreen
Event Type
OnLoadChanged
public event SignalHandler<WebView, WebView.LoadChangedSignalArgs> OnLoadChanged
Event Type
OnLoadFailed
public event ReturningSignalHandler<WebView, WebView.LoadFailedSignalArgs, bool> OnLoadFailed
Event Type
OnLoadFailedWithTlsErrors
public event ReturningSignalHandler<WebView, WebView.LoadFailedWithTlsErrorsSignalArgs, bool> OnLoadFailedWithTlsErrors
Event Type
OnMouseTargetChanged
public event SignalHandler<WebView, WebView.MouseTargetChangedSignalArgs> OnMouseTargetChanged
Event Type
OnPermissionRequest
public event ReturningSignalHandler<WebView, WebView.PermissionRequestSignalArgs, bool> OnPermissionRequest
Event Type
OnPrint
public event ReturningSignalHandler<WebView, WebView.PrintSignalArgs, bool> OnPrint
Event Type
OnQueryPermissionState
public event ReturningSignalHandler<WebView, WebView.QueryPermissionStateSignalArgs, bool> OnQueryPermissionState
Event Type
OnReadyToShow
public event SignalHandler<WebView> OnReadyToShow
Event Type
OnResourceLoadStarted
public event SignalHandler<WebView, WebView.ResourceLoadStartedSignalArgs> OnResourceLoadStarted
Event Type
OnRunAsModal
public event SignalHandler<WebView> OnRunAsModal
Event Type
OnRunColorChooser
public event ReturningSignalHandler<WebView, WebView.RunColorChooserSignalArgs, bool> OnRunColorChooser
Event Type
OnRunFileChooser
public event ReturningSignalHandler<WebView, WebView.RunFileChooserSignalArgs, bool> OnRunFileChooser
Event Type
OnScriptDialog
public event ReturningSignalHandler<WebView, WebView.ScriptDialogSignalArgs, bool> OnScriptDialog
Event Type
OnShowNotification
public event ReturningSignalHandler<WebView, WebView.ShowNotificationSignalArgs, bool> OnShowNotification
Event Type
OnShowOptionMenu
public event ReturningSignalHandler<WebView, WebView.ShowOptionMenuSignalArgs, bool> OnShowOptionMenu
Event Type
OnSubmitForm
public event SignalHandler<WebView, WebView.SubmitFormSignalArgs> OnSubmitForm
Event Type
OnUserMessageReceived
public event ReturningSignalHandler<WebView, WebView.UserMessageReceivedSignalArgs, bool> OnUserMessageReceived
Event Type
OnWebProcessTerminated
public event SignalHandler<WebView, WebView.WebProcessTerminatedSignalArgs> OnWebProcessTerminated