Table of Contents

Class AppLaunchContext

Namespace
Gio
Assembly
Gio-2.0.dll
public class AppLaunchContext : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
AppLaunchContext
Implements
Derived
Inherited Members

Constructors

AppLaunchContext(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 AppLaunchContext(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

AppLaunchContext(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AppLaunchContext(CreationData data)

Parameters

data CreationData

AppLaunchContext(AppLaunchContextHandle)

protected AppLaunchContext(AppLaunchContextHandle handle)

Parameters

handle AppLaunchContextHandle

Fields

LaunchFailedSignal

Signal Descriptor for OnLaunchFailed.

public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs> LaunchFailedSignal

Field Value

Signal<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs>

LaunchStartedSignal

Signal Descriptor for OnLaunchStarted.

public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs> LaunchStartedSignal

Field Value

Signal<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs>

LaunchedSignal

Signal Descriptor for OnLaunched.

public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs> LaunchedSignal

Field Value

Signal<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs>

Methods

GetDisplay(AppInfo, List)

public string? GetDisplay(AppInfo info, List files)

Parameters

info AppInfo
files List

Returns

string

GetEnvironment()

[Version("2.32")]
public string[] GetEnvironment()

Returns

string[]

GetGType()

public static Type GetGType()

Returns

Type

GetStartupNotifyId(AppInfo?, List?)

public string? GetStartupNotifyId(AppInfo? info, List? files)

Parameters

info AppInfo
files List

Returns

string

LaunchFailed(string)

public void LaunchFailed(string startupNotifyId)

Parameters

startupNotifyId string

New()

public static AppLaunchContext New()

Returns

AppLaunchContext

NewFromPointer(nint, bool)

Creates a new managed AppLaunchContext instance for a given pointer.

public static AppLaunchContext NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

AppLaunchContext

NewWithProperties(ConstructArgument[])

Creates a new AppLaunchContext and sets the properties specified by the construct arguments.

public static AppLaunchContext NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

AppLaunchContext

Setenv(string, string)

[Version("2.32")]
public void Setenv(string variable, string value)

Parameters

variable string
value string

Unsetenv(string)

[Version("2.32")]
public void Unsetenv(string variable)

Parameters

variable string

Events

OnLaunchFailed

public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs> OnLaunchFailed

Event Type

SignalHandler<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs>

OnLaunchStarted

public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs> OnLaunchStarted

Event Type

SignalHandler<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs>

OnLaunched

public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs> OnLaunched

Event Type

SignalHandler<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs>