Table of Contents

Class Application

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

Methods

Activate(IntPtr)

Calls native method g_application_activate. Version: 2.28

[Version("2.28")]
public static extern void Activate(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

AddMainOption(IntPtr, NonNullableUtf8StringHandle, sbyte, OptionFlags, OptionArg, NonNullableUtf8StringHandle, NullableUtf8StringHandle)

Calls native method g_application_add_main_option. Version: 2.42

[Version("2.42")]
public static extern void AddMainOption(IntPtr application, NonNullableUtf8StringHandle longName, sbyte shortName, OptionFlags flags, OptionArg arg, NonNullableUtf8StringHandle description, NullableUtf8StringHandle argDescription)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

longName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

shortName sbyte

Transfer ownership: None Nullable: False

flags OptionFlags

Transfer ownership: None Nullable: False

arg OptionArg

Transfer ownership: None Nullable: False

description NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

argDescription NullableUtf8StringHandle

Transfer ownership: None Nullable: True

AddMainOptionEntries(IntPtr, OptionEntryArrayHandle)

Calls native method g_application_add_main_option_entries. Version: 2.40

[Version("2.40")]
public static extern void AddMainOptionEntries(IntPtr application, OptionEntryArrayHandle entries)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

entries OptionEntryArrayHandle

Transfer ownership: None Nullable: False

AddOptionGroup(IntPtr, OptionGroupUnownedHandle)

Calls native method g_application_add_option_group. Version: 2.40

[Version("2.40")]
public static extern void AddOptionGroup(IntPtr application, OptionGroupUnownedHandle group)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

group OptionGroupUnownedHandle

Transfer ownership: Full Nullable: False

BindBusyProperty(IntPtr, IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_bind_busy_property. Version: 2.44

[Version("2.44")]
public static extern void BindBusyProperty(IntPtr application, IntPtr @object, NonNullableUtf8StringHandle property)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

object IntPtr
property NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

GetApplicationId(IntPtr)

Calls native method g_application_get_application_id. Version: 2.28

[Version("2.28")]
public static extern NullableUtf8StringUnownedHandle GetApplicationId(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetDbusConnection(IntPtr)

Calls native method g_application_get_dbus_connection. Version: 2.34

[Version("2.34")]
public static extern IntPtr GetDbusConnection(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDbusObjectPath(IntPtr)

Calls native method g_application_get_dbus_object_path. Version: 2.34

[Version("2.34")]
public static extern NullableUtf8StringUnownedHandle GetDbusObjectPath(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetDefault()

Calls native function g_application_get_default. Version: 2.32

[Version("2.32")]
public static extern IntPtr GetDefault()

Returns

IntPtr

Transfer ownership: None Nullable: True

GetFlags(IntPtr)

Calls native method g_application_get_flags. Version: 2.28

[Version("2.28")]
public static extern ApplicationFlags GetFlags(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

ApplicationFlags

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_application_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInactivityTimeout(IntPtr)

Calls native method g_application_get_inactivity_timeout. Version: 2.28

[Version("2.28")]
public static extern uint GetInactivityTimeout(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetIsBusy(IntPtr)

Calls native method g_application_get_is_busy. Version: 2.44

[Version("2.44")]
public static extern bool GetIsBusy(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIsRegistered(IntPtr)

Calls native method g_application_get_is_registered. Version: 2.28

[Version("2.28")]
public static extern bool GetIsRegistered(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIsRemote(IntPtr)

Calls native method g_application_get_is_remote. Version: 2.28

[Version("2.28")]
public static extern bool GetIsRemote(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetResourceBasePath(IntPtr)

Calls native method g_application_get_resource_base_path. Version: 2.42

[Version("2.42")]
public static extern NullableUtf8StringUnownedHandle GetResourceBasePath(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetVersion(IntPtr)

Calls native method g_application_get_version. Version: 2.80

[Version("2.80")]
public static extern NullableUtf8StringUnownedHandle GetVersion(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

Hold(IntPtr)

Calls native method g_application_hold.

public static extern void Hold(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

IdIsValid(NonNullableUtf8StringHandle)

Calls native function g_application_id_is_valid.

public static extern bool IdIsValid(NonNullableUtf8StringHandle applicationId)

Parameters

applicationId NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

MarkBusy(IntPtr)

Calls native method g_application_mark_busy. Version: 2.38

[Version("2.38")]
public static extern void MarkBusy(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

New(NullableUtf8StringHandle, ApplicationFlags)

Calls native constructor g_application_new.

public static extern IntPtr New(NullableUtf8StringHandle applicationId, ApplicationFlags flags)

Parameters

applicationId NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags ApplicationFlags

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Open(IntPtr, IntPtr[], int, NonNullableUtf8StringHandle)

Calls native method g_application_open. Version: 2.28

[Version("2.28")]
public static extern void Open(IntPtr application, IntPtr[] files, int nFiles, NonNullableUtf8StringHandle hint)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

files IntPtr[]

Transfer ownership: None Nullable: False

nFiles int

Transfer ownership: None Nullable: False

hint NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Quit(IntPtr)

Calls native method g_application_quit. Version: 2.32

[Version("2.32")]
public static extern void Quit(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Register(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_application_register. Version: 2.28

[Version("2.28")]
public static extern bool Register(IntPtr application, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Release(IntPtr)

Calls native method g_application_release.

public static extern void Release(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

Run(IntPtr, int, string[])

Calls native method g_application_run. Version: 2.28

[Version("2.28")]
public static extern int Run(IntPtr application, int argc, string[] argv)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

argc int

Transfer ownership: None Nullable: False

argv string[]

Transfer ownership: None Nullable: True

Returns

int

Transfer ownership: None Nullable: False

SendNotification(IntPtr, NullableUtf8StringHandle, IntPtr)

Calls native method g_application_send_notification. Version: 2.40

[Version("2.40")]
public static extern void SendNotification(IntPtr application, NullableUtf8StringHandle id, IntPtr notification)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

id NullableUtf8StringHandle

Transfer ownership: None Nullable: True

notification IntPtr

Transfer ownership: None Nullable: False

SetActionGroup(IntPtr, IntPtr)

Calls native method g_application_set_action_group. Version: 2.28

[Version("2.28")]
public static extern void SetActionGroup(IntPtr application, IntPtr actionGroup)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

actionGroup IntPtr

Transfer ownership: None Nullable: True

SetApplicationId(IntPtr, NullableUtf8StringHandle)

Calls native method g_application_set_application_id. Version: 2.28

[Version("2.28")]
public static extern void SetApplicationId(IntPtr application, NullableUtf8StringHandle applicationId)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

applicationId NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetDefault(IntPtr)

Calls native method g_application_set_default. Version: 2.32

[Version("2.32")]
public static extern void SetDefault(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: True

SetFlags(IntPtr, ApplicationFlags)

Calls native method g_application_set_flags. Version: 2.28

[Version("2.28")]
public static extern void SetFlags(IntPtr application, ApplicationFlags flags)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

flags ApplicationFlags

Transfer ownership: None Nullable: False

SetInactivityTimeout(IntPtr, uint)

Calls native method g_application_set_inactivity_timeout. Version: 2.28

[Version("2.28")]
public static extern void SetInactivityTimeout(IntPtr application, uint inactivityTimeout)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

inactivityTimeout uint

Transfer ownership: None Nullable: False

SetOptionContextDescription(IntPtr, NullableUtf8StringHandle)

Calls native method g_application_set_option_context_description. Version: 2.56

[Version("2.56")]
public static extern void SetOptionContextDescription(IntPtr application, NullableUtf8StringHandle description)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

description NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetOptionContextParameterString(IntPtr, NullableUtf8StringHandle)

Calls native method g_application_set_option_context_parameter_string. Version: 2.56

[Version("2.56")]
public static extern void SetOptionContextParameterString(IntPtr application, NullableUtf8StringHandle parameterString)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

parameterString NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetOptionContextSummary(IntPtr, NullableUtf8StringHandle)

Calls native method g_application_set_option_context_summary. Version: 2.56

[Version("2.56")]
public static extern void SetOptionContextSummary(IntPtr application, NullableUtf8StringHandle summary)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

summary NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetResourceBasePath(IntPtr, NullableUtf8StringHandle)

Calls native method g_application_set_resource_base_path. Version: 2.42

[Version("2.42")]
public static extern void SetResourceBasePath(IntPtr application, NullableUtf8StringHandle resourcePath)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

resourcePath NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetVersion(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_set_version. Version: 2.80

[Version("2.80")]
public static extern void SetVersion(IntPtr application, NonNullableUtf8StringHandle version)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

version NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

UnbindBusyProperty(IntPtr, IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_unbind_busy_property. Version: 2.44

[Version("2.44")]
public static extern void UnbindBusyProperty(IntPtr application, IntPtr @object, NonNullableUtf8StringHandle property)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

object IntPtr
property NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

UnmarkBusy(IntPtr)

Calls native method g_application_unmark_busy. Version: 2.38

[Version("2.38")]
public static extern void UnmarkBusy(IntPtr application)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

WithdrawNotification(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_withdraw_notification. Version: 2.40

[Version("2.40")]
public static extern void WithdrawNotification(IntPtr application, NonNullableUtf8StringHandle id)

Parameters

application IntPtr

Transfer ownership: None Nullable: False

id NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False