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
constructArgumentsConstructArgument[]
UriLauncher(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected UriLauncher(CreationData data)
Parameters
dataCreationData
UriLauncher(UriLauncherHandle)
protected UriLauncher(UriLauncherHandle handle)
Parameters
handleUriLauncherHandle
Fields
UriPropertyDefinition
public static readonly Property<string?, UriLauncher> UriPropertyDefinition
Field Value
Properties
Uri
public string? Uri { get; set; }
Property Value
Methods
CanLaunch(Window?)
[Version("4.20")]
public bool CanLaunch(Window? parent)
Parameters
parentWindow
Returns
GetGType()
public static Type GetGType()
Returns
GetUri()
[Version("4.10")]
public string? GetUri()
Returns
LaunchAsync(Window?)
public Task<bool> LaunchAsync(Window? parent)
Parameters
parentWindow
Returns
LaunchFinish(AsyncResult)
[Version("4.10")]
public bool LaunchFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
New(string?)
[Version("4.10")]
public static UriLauncher New(string? uri)
Parameters
uristring
Returns
NewFromPointer(nint, bool)
Creates a new managed UriLauncher instance for a given pointer.
public static UriLauncher NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new UriLauncher and sets the properties specified by the construct arguments.
public static UriLauncher NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetUri(string?)
[Version("4.10")]
public void SetUri(string? uri)
Parameters
uristring