Table of Contents

Class UriLauncher

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

UriLauncher(CreationData)

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

Parameters

data CreationData

UriLauncher(UriLauncherHandle)

protected UriLauncher(UriLauncherHandle handle)

Parameters

handle UriLauncherHandle

Fields

UriPropertyDefinition

public static readonly Property<string?, UriLauncher> UriPropertyDefinition

Field Value

Property<string, UriLauncher>

Properties

Uri

public string? Uri { get; set; }

Property Value

string

Methods

CanLaunch(Window?)

[Version("4.20")]
public bool CanLaunch(Window? parent)

Parameters

parent Window

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetUri()

[Version("4.10")]
public string? GetUri()

Returns

string

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(string?)

[Version("4.10")]
public static UriLauncher New(string? uri)

Parameters

uri string

Returns

UriLauncher

NewFromPointer(nint, bool)

Creates a new managed UriLauncher instance for a given pointer.

public static UriLauncher NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

UriLauncher

NewWithProperties(ConstructArgument[])

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

public static UriLauncher NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

UriLauncher

SetUri(string?)

[Version("4.10")]
public void SetUri(string? uri)

Parameters

uri string