gtk.uri_launcher

Module for [UriLauncher] class

Types 3

A [gtk.uri_launcher.UriLauncher] 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 [gtk.uri_launcher.UriLauncher.launch] function. This API follows the GIO async pattern, and the result can be obtained by calling [gtk.uri_launcher.UriLauncher.launchFinish].

To launch a file, use [gtk.file_launcher.FileLauncher].

Methods
GType _gType() @property
UriLauncher self()Returns `this`, for use in `with` statements.
UriLauncherGidBuilder builder()Get builder for [gtk.uri_launcher.UriLauncher] Returns: New builder object
string uri() @propertyGet `uri` property. Returns: The uri to launch.
void uri(string propval) @propertySet `uri` property. Params: propval = The uri to launch.
string getUri()Gets the uri that will be opened. Returns: the uri
void launch(gtk.window.Window parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Launch an application to open the uri.
bool launchFinish(gio.async_result.AsyncResult result)Finishes the [gtk.uri_launcher.UriLauncher.launch] call and returns the result.
void setUri(string uri = null)Sets the uri that will be opened.
Constructors
this(void * ptr, Flag!"Take" take)
this(string uri = null)Creates a new [gtk.uri_launcher.UriLauncher] object.
Methods
T uri(string propval)Set `uri` property. Params: propval = The uri to launch. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.uri_launcher.UriLauncher]