Class AutomationSession
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class AutomationSession : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
AutomationSession
- Implements
- Inherited Members
Constructors
AutomationSession(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 AutomationSession(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AutomationSession(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AutomationSession(CreationData data)
Parameters
dataCreationData
AutomationSession(AutomationSessionHandle)
protected AutomationSession(AutomationSessionHandle handle)
Parameters
handleAutomationSessionHandle
Fields
CreateWebViewSignal
Signal Descriptor for OnCreateWebView.
public static readonly ReturningSignal<AutomationSession, WebView> CreateWebViewSignal
Field Value
IdPropertyDefinition
public static readonly Property<string?, AutomationSession> IdPropertyDefinition
Field Value
WillCloseSignal
Signal Descriptor for OnWillClose.
public static readonly Signal<AutomationSession> WillCloseSignal
Field Value
Properties
Id
public string? Id { get; }
Property Value
Methods
GetApplicationInfo()
[Version("2.18")]
public ApplicationInfo GetApplicationInfo()
Returns
GetGType()
public static Type GetGType()
Returns
GetId()
[Version("2.18")]
public string GetId()
Returns
NewFromPointer(nint, bool)
Creates a new managed AutomationSession instance for a given pointer.
public static AutomationSession NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AutomationSession and sets the properties specified by the construct arguments.
public static AutomationSession NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetApplicationInfo(ApplicationInfo)
[Version("2.18")]
public void SetApplicationInfo(ApplicationInfo info)
Parameters
infoApplicationInfo
Events
OnCreateWebView
public event ReturningSignalHandler<AutomationSession, WebView> OnCreateWebView
Event Type
OnWillClose
public event SignalHandler<AutomationSession> OnWillClose