Table of Contents

Class FileLauncher

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class FileLauncher : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
FileLauncher
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

FileLauncher(CreationData)

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

Parameters

data CreationData

FileLauncher(FileLauncherHandle)

protected FileLauncher(FileLauncherHandle handle)

Parameters

handle FileLauncherHandle

Fields

AlwaysAskPropertyDefinition

public static readonly Property<bool, FileLauncher> AlwaysAskPropertyDefinition

Field Value

Property<bool, FileLauncher>

FilePropertyDefinition

public static readonly Property<File, FileLauncher> FilePropertyDefinition

Field Value

Property<File, FileLauncher>

WritablePropertyDefinition

public static readonly Property<bool, FileLauncher> WritablePropertyDefinition

Field Value

Property<bool, FileLauncher>

Properties

AlwaysAsk

public bool AlwaysAsk { get; set; }

Property Value

bool

File

public File File { get; set; }

Property Value

File

Writable

public bool Writable { get; set; }

Property Value

bool

Methods

GetAlwaysAsk()

[Version("4.12")]
public bool GetAlwaysAsk()

Returns

bool

GetFile()

[Version("4.10")]
public File? GetFile()

Returns

File

GetGType()

public static Type GetGType()

Returns

Type

GetWritable()

[Version("4.14")]
public bool GetWritable()

Returns

bool

LaunchAsync(Window?)

public Task<bool> LaunchAsync(Window? parent)

Parameters

parent Window

Returns

Task<bool>

LaunchFinish(AsyncResult)

[Version("4.10")]
public bool LaunchFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

New(File?)

[Version("4.10")]
public static FileLauncher New(File? file)

Parameters

file File

Returns

FileLauncher

NewFromPointer(nint, bool)

Creates a new managed FileLauncher instance for a given pointer.

public static FileLauncher NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileLauncher

NewWithProperties(ConstructArgument[])

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

public static FileLauncher NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileLauncher

OpenContainingFolderAsync(Window?)

public Task<bool> OpenContainingFolderAsync(Window? parent)

Parameters

parent Window

Returns

Task<bool>

OpenContainingFolderFinish(AsyncResult)

[Version("4.10")]
public bool OpenContainingFolderFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

SetAlwaysAsk(bool)

[Version("4.12")]
public void SetAlwaysAsk(bool alwaysAsk)

Parameters

alwaysAsk bool

SetFile(File?)

[Version("4.10")]
public void SetFile(File? file)

Parameters

file File

SetWritable(bool)

[Version("4.14")]
public void SetWritable(bool writable)

Parameters

writable bool