Table of Contents

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

constructArguments ConstructArgument[]

WebExtension(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WebExtension(CreationData data)

Parameters

data CreationData

WebExtension(WebExtensionHandle)

protected WebExtension(WebExtensionHandle handle)

Parameters

handle WebExtensionHandle

Fields

DefaultLocalePropertyDefinition

public static readonly Property<string?, WebExtension> DefaultLocalePropertyDefinition

Field Value

Property<string, WebExtension>

DisplayActionLabelPropertyDefinition

public static readonly Property<string?, WebExtension> DisplayActionLabelPropertyDefinition

Field Value

Property<string, WebExtension>

DisplayDescriptionPropertyDefinition

public static readonly Property<string?, WebExtension> DisplayDescriptionPropertyDefinition

Field Value

Property<string, WebExtension>

DisplayNamePropertyDefinition

public static readonly Property<string?, WebExtension> DisplayNamePropertyDefinition

Field Value

Property<string, WebExtension>

DisplayShortNamePropertyDefinition

public static readonly Property<string?, WebExtension> DisplayShortNamePropertyDefinition

Field Value

Property<string, WebExtension>

DisplayVersionPropertyDefinition

public static readonly Property<string?, WebExtension> DisplayVersionPropertyDefinition

Field Value

Property<string, WebExtension>

HasBackgroundContentPropertyDefinition

public static readonly Property<bool, WebExtension> HasBackgroundContentPropertyDefinition

Field Value

Property<bool, WebExtension>

HasCommandsPropertyDefinition

public static readonly Property<bool, WebExtension> HasCommandsPropertyDefinition

Field Value

Property<bool, WebExtension>

HasContentModificationRulesPropertyDefinition

public static readonly Property<bool, WebExtension> HasContentModificationRulesPropertyDefinition

Field Value

Property<bool, WebExtension>

HasInjectedContentPropertyDefinition

public static readonly Property<bool, WebExtension> HasInjectedContentPropertyDefinition

Field Value

Property<bool, WebExtension>

HasOptionsPagePropertyDefinition

public static readonly Property<bool, WebExtension> HasOptionsPagePropertyDefinition

Field Value

Property<bool, WebExtension>

HasOverrideNewTabPagePropertyDefinition

public static readonly Property<bool, WebExtension> HasOverrideNewTabPagePropertyDefinition

Field Value

Property<bool, WebExtension>

HasPersistentBackgroundContentPropertyDefinition

public static readonly Property<bool, WebExtension> HasPersistentBackgroundContentPropertyDefinition

Field Value

Property<bool, WebExtension>

ManifestVersionPropertyDefinition

public static readonly Property<string?, WebExtension> ManifestVersionPropertyDefinition

Field Value

Property<string, WebExtension>

OptionalPermissionsPropertyDefinition

public static readonly Property<string[], WebExtension> OptionalPermissionsPropertyDefinition

Field Value

Property<string[], WebExtension>

PathPropertyDefinition

public static readonly Property<string?, WebExtension> PathPropertyDefinition

Field Value

Property<string, WebExtension>

RequestedPermissionsPropertyDefinition

public static readonly Property<string[], WebExtension> RequestedPermissionsPropertyDefinition

Field Value

Property<string[], WebExtension>

VersionPropertyDefinition

public static readonly Property<string?, WebExtension> VersionPropertyDefinition

Field Value

Property<string, WebExtension>

Properties

DefaultLocale

public string? DefaultLocale { get; }

Property Value

string

DisplayActionLabel

public string? DisplayActionLabel { get; }

Property Value

string

DisplayDescription

public string? DisplayDescription { get; }

Property Value

string

DisplayName

public string? DisplayName { get; }

Property Value

string

DisplayShortName

public string? DisplayShortName { get; }

Property Value

string

DisplayVersion

public string? DisplayVersion { get; }

Property Value

string

HasBackgroundContent

public bool HasBackgroundContent { get; }

Property Value

bool

HasCommands

public bool HasCommands { get; }

Property Value

bool

HasContentModificationRules

public bool HasContentModificationRules { get; }

Property Value

bool

HasInjectedContent

public bool HasInjectedContent { get; }

Property Value

bool

HasOptionsPage

public bool HasOptionsPage { get; }

Property Value

bool

HasOverrideNewTabPage

public bool HasOverrideNewTabPage { get; }

Property Value

bool

HasPersistentBackgroundContent

public bool HasPersistentBackgroundContent { get; }

Property Value

bool

ManifestVersion

public string? ManifestVersion { get; }

Property Value

string

OptionalPermissions

public string[] OptionalPermissions { get; }

Property Value

string[]

Path

public string? Path { get; }

Property Value

string

RequestedPermissions

public string[] RequestedPermissions { get; }

Property Value

string[]

Version

public string? Version { get; }

Property Value

string

Methods

GetActionIcon(double, double)

[Version("2.52")]
public Icon? GetActionIcon(double width, double height)

Parameters

width double
height double

Returns

Icon

GetDefaultLocale()

[Version("2.52")]
public string? GetDefaultLocale()

Returns

string

GetDisplayActionLabel()

[Version("2.52")]
public string? GetDisplayActionLabel()

Returns

string

GetDisplayDescription()

[Version("2.52")]
public string? GetDisplayDescription()

Returns

string

GetDisplayName()

[Version("2.52")]
public string? GetDisplayName()

Returns

string

GetDisplayShortName()

[Version("2.52")]
public string? GetDisplayShortName()

Returns

string

GetDisplayVersion()

[Version("2.52")]
public string? GetDisplayVersion()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetHasBackgroundContent()

[Version("2.52")]
public bool GetHasBackgroundContent()

Returns

bool

GetHasCommands()

[Version("2.52")]
public bool GetHasCommands()

Returns

bool

GetHasContentModificationRules()

[Version("2.52")]
public bool GetHasContentModificationRules()

Returns

bool

GetHasInjectedContent()

[Version("2.52")]
public bool GetHasInjectedContent()

Returns

bool

GetHasOptionsPage()

[Version("2.52")]
public bool GetHasOptionsPage()

Returns

bool

GetHasOverrideNewTabPage()

[Version("2.52")]
public bool GetHasOverrideNewTabPage()

Returns

bool

GetHasPersistentBackgroundContent()

[Version("2.52")]
public bool GetHasPersistentBackgroundContent()

Returns

bool

GetIcon(double, double)

[Version("2.52")]
public Icon? GetIcon(double width, double height)

Parameters

width double
height double

Returns

Icon

GetManifestVersion()

[Version("2.52")]
public double GetManifestVersion()

Returns

double

GetOptionalPermissions()

[Version("2.52")]
public string[]? GetOptionalPermissions()

Returns

string[]

GetPath()

[Version("2.52")]
public string GetPath()

Returns

string

GetRequestedPermissions()

[Version("2.52")]
public string[]? GetRequestedPermissions()

Returns

string[]

GetVersion()

[Version("2.52")]
public string? GetVersion()

Returns

string

Init(Cancellable?)

[Version("2.22")]
public bool Init(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

New(string)

[Version("2.52")]
public static WebExtension? New(string extensionPath)

Parameters

extensionPath string

Returns

WebExtension

NewFromPointer(nint, bool)

Creates a new managed WebExtension instance for a given pointer.

public static WebExtension NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WebExtension

NewWithProperties(ConstructArgument[])

Creates a new WebExtension and sets the properties specified by the construct arguments.

public static WebExtension NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WebExtension

SupportsManifestVersion(double)

[Version("2.52")]
public bool SupportsManifestVersion(double manifestVersion)

Parameters

manifestVersion double

Returns

bool