Class Notification
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class Notification : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Notification
- Implements
-
- Inherited Members
-
Constructors
Notification(bool, params ConstructArgument[])
protected Notification(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
Notification(IntPtr, bool)
protected Notification(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Methods
[Version("2.40")]
public void AddButton(string label, string detailedAction)
Parameters
label
string
detailedAction
string
[Version("2.40")]
public void AddButtonWithTarget(string label, string action, Variant? target)
Parameters
label
string
action
string
target
Variant
GetGType()
public static Type GetGType()
Returns
- Type
New(string)
[Version("2.40")]
public static Notification New(string title)
Parameters
title
string
Returns
- Notification
SetBody(string?)
[Version("2.40")]
public void SetBody(string? body)
Parameters
body
string
SetCategory(string?)
[Version("2.70")]
public void SetCategory(string? category)
Parameters
category
string
SetDefaultAction(string)
[Version("2.40")]
public void SetDefaultAction(string detailedAction)
Parameters
detailedAction
string
SetDefaultActionAndTarget(string, Variant?)
[Version("2.40")]
public void SetDefaultActionAndTarget(string action, Variant? target)
Parameters
action
string
target
Variant
SetIcon(Icon)
[Version("2.40")]
public void SetIcon(Icon icon)
Parameters
icon
Icon
SetPriority(NotificationPriority)
public void SetPriority(NotificationPriority priority)
Parameters
priority
NotificationPriority
SetTitle(string)
[Version("2.40")]
public void SetTitle(string title)
Parameters
title
string
SetUrgent(bool)
[Version("2.40")]
public void SetUrgent(bool urgent)
Parameters
urgent
bool