Class WebExtension
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class WebExtension : Object, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
WebExtension
- Implements
- Inherited Members
Constructors
WebExtension(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 WebExtension(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
WebExtension(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WebExtension(CreationData data)
Parameters
dataCreationData
WebExtension(WebExtensionHandle)
protected WebExtension(WebExtensionHandle handle)
Parameters
handleWebExtensionHandle
Fields
DefaultLocalePropertyDefinition
public static readonly Property<string?, WebExtension> DefaultLocalePropertyDefinition
Field Value
DisplayActionLabelPropertyDefinition
public static readonly Property<string?, WebExtension> DisplayActionLabelPropertyDefinition
Field Value
DisplayDescriptionPropertyDefinition
public static readonly Property<string?, WebExtension> DisplayDescriptionPropertyDefinition
Field Value
DisplayNamePropertyDefinition
public static readonly Property<string?, WebExtension> DisplayNamePropertyDefinition
Field Value
DisplayShortNamePropertyDefinition
public static readonly Property<string?, WebExtension> DisplayShortNamePropertyDefinition
Field Value
DisplayVersionPropertyDefinition
public static readonly Property<string?, WebExtension> DisplayVersionPropertyDefinition
Field Value
HasBackgroundContentPropertyDefinition
public static readonly Property<bool, WebExtension> HasBackgroundContentPropertyDefinition
Field Value
HasCommandsPropertyDefinition
public static readonly Property<bool, WebExtension> HasCommandsPropertyDefinition
Field Value
HasContentModificationRulesPropertyDefinition
public static readonly Property<bool, WebExtension> HasContentModificationRulesPropertyDefinition
Field Value
HasInjectedContentPropertyDefinition
public static readonly Property<bool, WebExtension> HasInjectedContentPropertyDefinition
Field Value
HasOptionsPagePropertyDefinition
public static readonly Property<bool, WebExtension> HasOptionsPagePropertyDefinition
Field Value
HasOverrideNewTabPagePropertyDefinition
public static readonly Property<bool, WebExtension> HasOverrideNewTabPagePropertyDefinition
Field Value
HasPersistentBackgroundContentPropertyDefinition
public static readonly Property<bool, WebExtension> HasPersistentBackgroundContentPropertyDefinition
Field Value
ManifestVersionPropertyDefinition
public static readonly Property<string?, WebExtension> ManifestVersionPropertyDefinition
Field Value
OptionalPermissionsPropertyDefinition
public static readonly Property<string[], WebExtension> OptionalPermissionsPropertyDefinition
Field Value
PathPropertyDefinition
public static readonly Property<string?, WebExtension> PathPropertyDefinition
Field Value
RequestedPermissionsPropertyDefinition
public static readonly Property<string[], WebExtension> RequestedPermissionsPropertyDefinition
Field Value
VersionPropertyDefinition
public static readonly Property<string?, WebExtension> VersionPropertyDefinition
Field Value
Properties
DefaultLocale
public string? DefaultLocale { get; }
Property Value
DisplayActionLabel
public string? DisplayActionLabel { get; }
Property Value
DisplayDescription
public string? DisplayDescription { get; }
Property Value
DisplayName
public string? DisplayName { get; }
Property Value
DisplayShortName
public string? DisplayShortName { get; }
Property Value
DisplayVersion
public string? DisplayVersion { get; }
Property Value
HasBackgroundContent
public bool HasBackgroundContent { get; }
Property Value
HasCommands
public bool HasCommands { get; }
Property Value
HasContentModificationRules
public bool HasContentModificationRules { get; }
Property Value
HasInjectedContent
public bool HasInjectedContent { get; }
Property Value
HasOptionsPage
public bool HasOptionsPage { get; }
Property Value
HasOverrideNewTabPage
public bool HasOverrideNewTabPage { get; }
Property Value
HasPersistentBackgroundContent
public bool HasPersistentBackgroundContent { get; }
Property Value
ManifestVersion
public string? ManifestVersion { get; }
Property Value
OptionalPermissions
public string[] OptionalPermissions { get; }
Property Value
- string[]
Path
public string? Path { get; }
Property Value
RequestedPermissions
public string[] RequestedPermissions { get; }
Property Value
- string[]
Version
public string? Version { get; }
Property Value
Methods
GetActionIcon(double, double)
[Version("2.52")]
public Icon? GetActionIcon(double width, double height)
Parameters
Returns
GetDefaultLocale()
[Version("2.52")]
public string? GetDefaultLocale()
Returns
GetDisplayActionLabel()
[Version("2.52")]
public string? GetDisplayActionLabel()
Returns
GetDisplayDescription()
[Version("2.52")]
public string? GetDisplayDescription()
Returns
GetDisplayName()
[Version("2.52")]
public string? GetDisplayName()
Returns
GetDisplayShortName()
[Version("2.52")]
public string? GetDisplayShortName()
Returns
GetDisplayVersion()
[Version("2.52")]
public string? GetDisplayVersion()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasBackgroundContent()
[Version("2.52")]
public bool GetHasBackgroundContent()
Returns
GetHasCommands()
[Version("2.52")]
public bool GetHasCommands()
Returns
GetHasContentModificationRules()
[Version("2.52")]
public bool GetHasContentModificationRules()
Returns
GetHasInjectedContent()
[Version("2.52")]
public bool GetHasInjectedContent()
Returns
GetHasOptionsPage()
[Version("2.52")]
public bool GetHasOptionsPage()
Returns
GetHasOverrideNewTabPage()
[Version("2.52")]
public bool GetHasOverrideNewTabPage()
Returns
GetHasPersistentBackgroundContent()
[Version("2.52")]
public bool GetHasPersistentBackgroundContent()
Returns
GetIcon(double, double)
[Version("2.52")]
public Icon? GetIcon(double width, double height)
Parameters
Returns
GetManifestVersion()
[Version("2.52")]
public double GetManifestVersion()
Returns
GetOptionalPermissions()
[Version("2.52")]
public string[]? GetOptionalPermissions()
Returns
- string[]
GetPath()
[Version("2.52")]
public string GetPath()
Returns
GetRequestedPermissions()
[Version("2.52")]
public string[]? GetRequestedPermissions()
Returns
- string[]
GetVersion()
[Version("2.52")]
public string? GetVersion()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
New(string)
[Version("2.52")]
public static WebExtension? New(string extensionPath)
Parameters
extensionPathstring
Returns
NewFromPointer(nint, bool)
Creates a new managed WebExtension instance for a given pointer.
public static WebExtension NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WebExtension and sets the properties specified by the construct arguments.
public static WebExtension NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SupportsManifestVersion(double)
[Version("2.52")]
public bool SupportsManifestVersion(double manifestVersion)
Parameters
manifestVersiondouble