Table of Contents

Class Notification

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class Notification : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Notification
Implements
Inherited Members

Constructors

Notification(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 Notification(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Notification(CreationData)

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

Parameters

data CreationData

Notification(NotificationHandle)

protected Notification(NotificationHandle handle)

Parameters

handle NotificationHandle

Fields

BodyPropertyDefinition

public static readonly Property<string?, Notification> BodyPropertyDefinition

Field Value

Property<string, Notification>

ClickedSignal

Signal Descriptor for OnClicked.

public static readonly Signal<Notification> ClickedSignal

Field Value

Signal<Notification>

ClosedSignal

Signal Descriptor for OnClosed.

public static readonly Signal<Notification> ClosedSignal

Field Value

Signal<Notification>

IdPropertyDefinition

public static readonly Property<ulong, Notification> IdPropertyDefinition

Field Value

Property<ulong, Notification>

TagPropertyDefinition

public static readonly Property<string?, Notification> TagPropertyDefinition

Field Value

Property<string, Notification>

TitlePropertyDefinition

public static readonly Property<string?, Notification> TitlePropertyDefinition

Field Value

Property<string, Notification>

Properties

Body

public string? Body { get; }

Property Value

string

Id

public ulong Id { get; }

Property Value

ulong

Tag

public string? Tag { get; }

Property Value

string

Title

public string? Title { get; }

Property Value

string

Methods

Clicked()

[Version("2.12")]
public void Clicked()

Close()

[Version("2.8")]
public void Close()

GetBody()

[Version("2.8")]
public string GetBody()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetId()

[Version("2.8")]
public ulong GetId()

Returns

ulong

GetTag()

[Version("2.16")]
public string? GetTag()

Returns

string

GetTitle()

[Version("2.8")]
public string GetTitle()

Returns

string

NewFromPointer(nint, bool)

Creates a new managed Notification instance for a given pointer.

public static Notification NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Notification

NewWithProperties(ConstructArgument[])

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

public static Notification NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Notification

Events

OnClicked

public event SignalHandler<Notification> OnClicked

Event Type

SignalHandler<Notification>

OnClosed

public event SignalHandler<Notification> OnClosed

Event Type

SignalHandler<Notification>