UriLauncher

open class UriLauncher(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GtkUriLauncher object collects the arguments that are needed to open a uri with an application.

Depending on system configuration, user preferences and available APIs, this may or may not show an app chooser dialog or launch the default application right away.

The operation is started with the method@Gtk.UriLauncher.launch function.

To launch a file, use class@Gtk.FileLauncher.

Since

4.10

Constructors

Link copied to clipboard
constructor(uri: String? = null)

Creates a new GtkUriLauncher object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkUriLauncherPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var uri: String?

The uri to launch.

Functions

Link copied to clipboard
open fun launch(parent: Window? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Launch an application to open the uri.

Link copied to clipboard
open fun launchFinish(result: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finishes the method@Gtk.UriLauncher.launch call and returns the result.