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
constructArgumentsConstructArgument[]
Notification(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Notification(CreationData data)
Parameters
dataCreationData
Notification(NotificationHandle)
protected Notification(NotificationHandle handle)
Parameters
handleNotificationHandle
Fields
BodyPropertyDefinition
public static readonly Property<string?, Notification> BodyPropertyDefinition
Field Value
ClickedSignal
Signal Descriptor for OnClicked.
public static readonly Signal<Notification> ClickedSignal
Field Value
ClosedSignal
Signal Descriptor for OnClosed.
public static readonly Signal<Notification> ClosedSignal
Field Value
IdPropertyDefinition
public static readonly Property<ulong, Notification> IdPropertyDefinition
Field Value
TagPropertyDefinition
public static readonly Property<string?, Notification> TagPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, Notification> TitlePropertyDefinition
Field Value
Properties
Body
public string? Body { get; }
Property Value
Id
public ulong Id { get; }
Property Value
Tag
public string? Tag { get; }
Property Value
Title
public string? Title { get; }
Property Value
Methods
Clicked()
[Version("2.12")]
public void Clicked()
Close()
[Version("2.8")]
public void Close()
GetBody()
[Version("2.8")]
public string GetBody()
Returns
GetGType()
public static Type GetGType()
Returns
GetId()
[Version("2.8")]
public ulong GetId()
Returns
GetTag()
[Version("2.16")]
public string? GetTag()
Returns
GetTitle()
[Version("2.8")]
public string GetTitle()
Returns
NewFromPointer(nint, bool)
Creates a new managed Notification instance for a given pointer.
public static Notification NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Notification and sets the properties specified by the construct arguments.
public static Notification NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnClicked
public event SignalHandler<Notification> OnClicked
Event Type
OnClosed
public event SignalHandler<Notification> OnClosed