Class Application
public class Application
- Inheritance
-
Application
- Inherited Members
Methods
Activate(nint)
Calls native method g_application_activate. Version: 2.28
[Version("2.28")]
public static extern void Activate(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
AddMainOption(nint, 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(nint application, NonNullableUtf8StringHandle longName, sbyte shortName, OptionFlags flags, OptionArg arg, NonNullableUtf8StringHandle description, NullableUtf8StringHandle argDescription)
Parameters
application
nintTransfer ownership: None Nullable: False
longName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
shortName
sbyteTransfer ownership: None Nullable: False
flags
OptionFlagsTransfer ownership: None Nullable: False
arg
OptionArgTransfer ownership: None Nullable: False
description
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
argDescription
NullableUtf8StringHandleTransfer ownership: None Nullable: True
AddMainOptionEntries(nint, OptionEntryArrayHandle)
Calls native method g_application_add_main_option_entries. Version: 2.40
[Version("2.40")]
public static extern void AddMainOptionEntries(nint application, OptionEntryArrayHandle entries)
Parameters
application
nintTransfer ownership: None Nullable: False
entries
OptionEntryArrayHandleTransfer ownership: None Nullable: False
AddOptionGroup(nint, OptionGroupUnownedHandle)
Calls native method g_application_add_option_group. Version: 2.40
[Version("2.40")]
public static extern void AddOptionGroup(nint application, OptionGroupUnownedHandle group)
Parameters
application
nintTransfer ownership: None Nullable: False
group
OptionGroupUnownedHandleTransfer ownership: Full Nullable: False
BindBusyProperty(nint, nint, NonNullableUtf8StringHandle)
Calls native method g_application_bind_busy_property. Version: 2.44
[Version("2.44")]
public static extern void BindBusyProperty(nint application, nint @object, NonNullableUtf8StringHandle property)
Parameters
application
nintTransfer ownership: None Nullable: False
object
nintproperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
GetApplicationId(nint)
Calls native method g_application_get_application_id. Version: 2.28
[Version("2.28")]
public static extern NullableUtf8StringUnownedHandle GetApplicationId(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetDbusConnection(nint)
Calls native method g_application_get_dbus_connection. Version: 2.34
[Version("2.34")]
public static extern nint GetDbusConnection(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- nint
Transfer ownership: None Nullable: True
GetDbusObjectPath(nint)
Calls native method g_application_get_dbus_object_path. Version: 2.34
[Version("2.34")]
public static extern NullableUtf8StringUnownedHandle GetDbusObjectPath(nint application)
Parameters
application
nintTransfer 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 nint GetDefault()
Returns
- nint
Transfer ownership: None Nullable: True
GetFlags(nint)
Calls native method g_application_get_flags. Version: 2.28
[Version("2.28")]
public static extern ApplicationFlags GetFlags(nint application)
Parameters
application
nintTransfer 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(nint)
Calls native method g_application_get_inactivity_timeout. Version: 2.28
[Version("2.28")]
public static extern uint GetInactivityTimeout(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
GetIsBusy(nint)
Calls native method g_application_get_is_busy. Version: 2.44
[Version("2.44")]
public static extern bool GetIsBusy(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetIsRegistered(nint)
Calls native method g_application_get_is_registered. Version: 2.28
[Version("2.28")]
public static extern bool GetIsRegistered(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetIsRemote(nint)
Calls native method g_application_get_is_remote. Version: 2.28
[Version("2.28")]
public static extern bool GetIsRemote(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetResourceBasePath(nint)
Calls native method g_application_get_resource_base_path. Version: 2.42
[Version("2.42")]
public static extern NullableUtf8StringUnownedHandle GetResourceBasePath(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetVersion(nint)
Calls native method g_application_get_version. Version: 2.80
[Version("2.80")]
public static extern NullableUtf8StringUnownedHandle GetVersion(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
Hold(nint)
Calls native method g_application_hold.
public static extern void Hold(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
IdIsValid(NonNullableUtf8StringHandle)
Calls native function g_application_id_is_valid.
public static extern bool IdIsValid(NonNullableUtf8StringHandle applicationId)
Parameters
applicationId
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
MarkBusy(nint)
Calls native method g_application_mark_busy. Version: 2.38
[Version("2.38")]
public static extern void MarkBusy(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
New(NullableUtf8StringHandle, ApplicationFlags)
Calls native constructor g_application_new.
public static extern nint New(NullableUtf8StringHandle applicationId, ApplicationFlags flags)
Parameters
applicationId
NullableUtf8StringHandleTransfer ownership: None Nullable: True
flags
ApplicationFlagsTransfer ownership: None Nullable: False
Returns
- nint
Transfer ownership: Full Nullable: False
Open(nint, nint[], int, NonNullableUtf8StringHandle)
Calls native method g_application_open. Version: 2.28
[Version("2.28")]
public static extern void Open(nint application, nint[] files, int nFiles, NonNullableUtf8StringHandle hint)
Parameters
application
nintTransfer ownership: None Nullable: False
files
nint[]Transfer ownership: None Nullable: False
nFiles
intTransfer ownership: None Nullable: False
hint
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Quit(nint)
Calls native method g_application_quit. Version: 2.32
[Version("2.32")]
public static extern void Quit(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Register(nint, nint, out ErrorOwnedHandle)
Calls native method g_application_register. Version: 2.28
[Version("2.28")]
public static extern bool Register(nint application, nint cancellable, out ErrorOwnedHandle error)
Parameters
application
nintTransfer ownership: None Nullable: False
cancellable
nintTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
Release(nint)
Calls native method g_application_release.
public static extern void Release(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
Run(nint, int, string[])
Calls native method g_application_run. Version: 2.28
[Version("2.28")]
public static extern int Run(nint application, int argc, string[] argv)
Parameters
application
nintTransfer ownership: None Nullable: False
argc
intTransfer ownership: None Nullable: False
argv
string[]Transfer ownership: None Nullable: True
Returns
- int
Transfer ownership: None Nullable: False
SendNotification(nint, NullableUtf8StringHandle, nint)
Calls native method g_application_send_notification. Version: 2.40
[Version("2.40")]
public static extern void SendNotification(nint application, NullableUtf8StringHandle id, nint notification)
Parameters
application
nintTransfer ownership: None Nullable: False
id
NullableUtf8StringHandleTransfer ownership: None Nullable: True
notification
nintTransfer ownership: None Nullable: False
SetActionGroup(nint, nint)
Calls native method g_application_set_action_group. Version: 2.28
[Version("2.28")]
public static extern void SetActionGroup(nint application, nint actionGroup)
Parameters
application
nintTransfer ownership: None Nullable: False
actionGroup
nintTransfer ownership: None Nullable: True
SetApplicationId(nint, NullableUtf8StringHandle)
Calls native method g_application_set_application_id. Version: 2.28
[Version("2.28")]
public static extern void SetApplicationId(nint application, NullableUtf8StringHandle applicationId)
Parameters
application
nintTransfer ownership: None Nullable: False
applicationId
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetDefault(nint)
Calls native method g_application_set_default. Version: 2.32
[Version("2.32")]
public static extern void SetDefault(nint application)
Parameters
application
nintTransfer ownership: None Nullable: True
SetFlags(nint, ApplicationFlags)
Calls native method g_application_set_flags. Version: 2.28
[Version("2.28")]
public static extern void SetFlags(nint application, ApplicationFlags flags)
Parameters
application
nintTransfer ownership: None Nullable: False
flags
ApplicationFlagsTransfer ownership: None Nullable: False
SetInactivityTimeout(nint, uint)
Calls native method g_application_set_inactivity_timeout. Version: 2.28
[Version("2.28")]
public static extern void SetInactivityTimeout(nint application, uint inactivityTimeout)
Parameters
application
nintTransfer ownership: None Nullable: False
inactivityTimeout
uintTransfer ownership: None Nullable: False
SetOptionContextDescription(nint, NullableUtf8StringHandle)
Calls native method g_application_set_option_context_description. Version: 2.56
[Version("2.56")]
public static extern void SetOptionContextDescription(nint application, NullableUtf8StringHandle description)
Parameters
application
nintTransfer ownership: None Nullable: False
description
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetOptionContextParameterString(nint, NullableUtf8StringHandle)
Calls native method g_application_set_option_context_parameter_string. Version: 2.56
[Version("2.56")]
public static extern void SetOptionContextParameterString(nint application, NullableUtf8StringHandle parameterString)
Parameters
application
nintTransfer ownership: None Nullable: False
parameterString
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetOptionContextSummary(nint, NullableUtf8StringHandle)
Calls native method g_application_set_option_context_summary. Version: 2.56
[Version("2.56")]
public static extern void SetOptionContextSummary(nint application, NullableUtf8StringHandle summary)
Parameters
application
nintTransfer ownership: None Nullable: False
summary
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetResourceBasePath(nint, NullableUtf8StringHandle)
Calls native method g_application_set_resource_base_path. Version: 2.42
[Version("2.42")]
public static extern void SetResourceBasePath(nint application, NullableUtf8StringHandle resourcePath)
Parameters
application
nintTransfer ownership: None Nullable: False
resourcePath
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetVersion(nint, NonNullableUtf8StringHandle)
Calls native method g_application_set_version. Version: 2.80
[Version("2.80")]
public static extern void SetVersion(nint application, NonNullableUtf8StringHandle version)
Parameters
application
nintTransfer ownership: None Nullable: False
version
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
UnbindBusyProperty(nint, nint, NonNullableUtf8StringHandle)
Calls native method g_application_unbind_busy_property. Version: 2.44
[Version("2.44")]
public static extern void UnbindBusyProperty(nint application, nint @object, NonNullableUtf8StringHandle property)
Parameters
application
nintTransfer ownership: None Nullable: False
object
nintproperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
UnmarkBusy(nint)
Calls native method g_application_unmark_busy. Version: 2.38
[Version("2.38")]
public static extern void UnmarkBusy(nint application)
Parameters
application
nintTransfer ownership: None Nullable: False
WithdrawNotification(nint, NonNullableUtf8StringHandle)
Calls native method g_application_withdraw_notification. Version: 2.40
[Version("2.40")]
public static extern void WithdrawNotification(nint application, NonNullableUtf8StringHandle id)
Parameters
application
nintTransfer ownership: None Nullable: False
id
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False