Class WebPage
- Namespace
- WebKitWebProcessExtension
- Assembly
- WebKitWebProcessExtension-6.0.dll
public sealed class WebPage : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
WebPage
- Implements
- Inherited Members
Constructors
WebPage(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public WebPage(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
WebPage(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WebPage(CreationData data)
Parameters
dataCreationData
WebPage(WebPageHandle)
protected WebPage(WebPageHandle handle)
Parameters
handleWebPageHandle
Fields
ConsoleMessageSentSignal
Signal Descriptor for OnConsoleMessageSent.
public static readonly Signal<WebPage, WebPage.ConsoleMessageSentSignalArgs> ConsoleMessageSentSignal
Field Value
ContextMenuSignal
Signal Descriptor for OnContextMenu.
public static readonly ReturningSignal<WebPage, WebPage.ContextMenuSignalArgs, bool> ContextMenuSignal
Field Value
DocumentLoadedSignal
Signal Descriptor for OnDocumentLoaded.
public static readonly Signal<WebPage> DocumentLoadedSignal
Field Value
SendRequestSignal
Signal Descriptor for OnSendRequest.
public static readonly ReturningSignal<WebPage, WebPage.SendRequestSignalArgs, bool> SendRequestSignal
Field Value
UriPropertyDefinition
public static readonly Property<string?, WebPage> UriPropertyDefinition
Field Value
UserMessageReceivedSignal
Signal Descriptor for OnUserMessageReceived.
public static readonly ReturningSignal<WebPage, WebPage.UserMessageReceivedSignalArgs, bool> UserMessageReceivedSignal
Field Value
Properties
Uri
public string? Uri { get; }
Property Value
Methods
GetEditor()
[Version("2.10")]
public WebEditor GetEditor()
Returns
GetFormManager(ScriptWorld?)
[Version("2.40")]
public WebFormManager GetFormManager(ScriptWorld? world)
Parameters
worldScriptWorld
Returns
GetGType()
public static Type GetGType()
Returns
GetId()
public ulong GetId()
Returns
GetMainFrame()
[Version("2.2")]
public Frame GetMainFrame()
Returns
GetUri()
public string GetUri()
Returns
NewFromPointer(nint, bool)
Creates a new managed WebPage instance for a given pointer.
public static WebPage NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WebPage and sets the properties specified by the construct arguments.
public static WebPage NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SendMessageToViewFinish(AsyncResult)
[Version("2.28")]
public UserMessage SendMessageToViewFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Events
OnConsoleMessageSent
public event SignalHandler<WebPage, WebPage.ConsoleMessageSentSignalArgs> OnConsoleMessageSent
Event Type
OnContextMenu
public event ReturningSignalHandler<WebPage, WebPage.ContextMenuSignalArgs, bool> OnContextMenu
Event Type
OnDocumentLoaded
public event SignalHandler<WebPage> OnDocumentLoaded
Event Type
OnSendRequest
public event ReturningSignalHandler<WebPage, WebPage.SendRequestSignalArgs, bool> OnSendRequest
Event Type
OnUserMessageReceived
public event ReturningSignalHandler<WebPage, WebPage.UserMessageReceivedSignalArgs, bool> OnUserMessageReceived