Table of Contents

Class Notification

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class Notification
Inheritance
Notification
Inherited Members

Methods

AddButton(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method g_notification_add_button. Version: 2.40

[Version("2.40")]
public static extern void AddButton(IntPtr notification, NonNullableUtf8StringHandle label, NonNullableUtf8StringHandle detailedAction)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

label NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

detailedAction NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

AddButtonWithTarget(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle)

Calls native method g_notification_add_button_with_target_value. Version: 2.40

[Version("2.40")]
public static extern void AddButtonWithTarget(IntPtr notification, NonNullableUtf8StringHandle label, NonNullableUtf8StringHandle action, VariantHandle target)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

label NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

action NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target VariantHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_notification_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

New(NonNullableUtf8StringHandle)

Calls native constructor g_notification_new. Version: 2.40

[Version("2.40")]
public static extern IntPtr New(NonNullableUtf8StringHandle title)

Parameters

title NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetBody(IntPtr, NullableUtf8StringHandle)

Calls native method g_notification_set_body. Version: 2.40

[Version("2.40")]
public static extern void SetBody(IntPtr notification, NullableUtf8StringHandle body)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

body NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetCategory(IntPtr, NullableUtf8StringHandle)

Calls native method g_notification_set_category. Version: 2.70

[Version("2.70")]
public static extern void SetCategory(IntPtr notification, NullableUtf8StringHandle category)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

category NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetDefaultAction(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_notification_set_default_action. Version: 2.40

[Version("2.40")]
public static extern void SetDefaultAction(IntPtr notification, NonNullableUtf8StringHandle detailedAction)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

detailedAction NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetDefaultActionAndTarget(IntPtr, NonNullableUtf8StringHandle, VariantHandle)

Calls native method g_notification_set_default_action_and_target_value. Version: 2.40

[Version("2.40")]
public static extern void SetDefaultActionAndTarget(IntPtr notification, NonNullableUtf8StringHandle action, VariantHandle target)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

action NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target VariantHandle

Transfer ownership: None Nullable: True

SetIcon(IntPtr, IntPtr)

Calls native method g_notification_set_icon. Version: 2.40

[Version("2.40")]
public static extern void SetIcon(IntPtr notification, IntPtr icon)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

icon IntPtr

Transfer ownership: None Nullable: False

SetPriority(IntPtr, NotificationPriority)

Calls native method g_notification_set_priority.

public static extern void SetPriority(IntPtr notification, NotificationPriority priority)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

priority NotificationPriority

Transfer ownership: None Nullable: False

SetTitle(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_notification_set_title. Version: 2.40

[Version("2.40")]
public static extern void SetTitle(IntPtr notification, NonNullableUtf8StringHandle title)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

title NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetUrgent(IntPtr, bool)

Calls native method g_notification_set_urgent. Version: 2.40

[Version("2.40")]
public static extern void SetUrgent(IntPtr notification, bool urgent)

Parameters

notification IntPtr

Transfer ownership: None Nullable: False

urgent bool

Transfer ownership: None Nullable: False