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
constructArgumentsConstructArgument[]
AppLaunchContext(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AppLaunchContext(CreationData data)
Parameters
dataCreationData
AppLaunchContext(AppLaunchContextHandle)
protected AppLaunchContext(AppLaunchContextHandle handle)
Parameters
handleAppLaunchContextHandle
Fields
LaunchFailedSignal
Signal Descriptor for OnLaunchFailed.
public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs> LaunchFailedSignal
Field Value
LaunchStartedSignal
Signal Descriptor for OnLaunchStarted.
public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs> LaunchStartedSignal
Field Value
LaunchedSignal
Signal Descriptor for OnLaunched.
public static readonly Signal<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs> LaunchedSignal
Field Value
Methods
GetDisplay(AppInfo, List)
public string? GetDisplay(AppInfo info, List files)
Parameters
Returns
GetEnvironment()
[Version("2.32")]
public string[] GetEnvironment()
Returns
- string[]
GetGType()
public static Type GetGType()
Returns
GetStartupNotifyId(AppInfo?, List?)
public string? GetStartupNotifyId(AppInfo? info, List? files)
Parameters
Returns
LaunchFailed(string)
public void LaunchFailed(string startupNotifyId)
Parameters
startupNotifyIdstring
New()
public static AppLaunchContext New()
Returns
NewFromPointer(nint, bool)
Creates a new managed AppLaunchContext instance for a given pointer.
public static AppLaunchContext NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AppLaunchContext and sets the properties specified by the construct arguments.
public static AppLaunchContext NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Setenv(string, string)
[Version("2.32")]
public void Setenv(string variable, string value)
Parameters
Unsetenv(string)
[Version("2.32")]
public void Unsetenv(string variable)
Parameters
variablestring
Events
OnLaunchFailed
public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchFailedSignalArgs> OnLaunchFailed
Event Type
OnLaunchStarted
public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchStartedSignalArgs> OnLaunchStarted
Event Type
OnLaunched
public event SignalHandler<AppLaunchContext, AppLaunchContext.LaunchedSignalArgs> OnLaunched