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 _getGType() static nothrow
GType _gType() @property nothrow
UriLauncher self() nothrowReturns `this`, for use in `with` statements.
UriLauncherGidBuilder builder() static nothrowGet builder for [gtk.uri_launcher.UriLauncher] Returns: New builder object
string uri() @property nothrowGet `uri` property. Returns: The uri to launch.
void uri(string propval) @property nothrowSet `uri` property. Params: propval = The uri to launch.
string getUri() nothrowGets 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) nothrowLaunch 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) nothrowSets 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.

Fluent builder implementation template for gtk.uri_launcher.UriLauncher

Methods
T uri(string propval) nothrowSet `uri` property. Params: propval = The uri to launch. Returns: Builder instance for fluent chaining

Fluent builder for gtk.uri_launcher.UriLauncher

Methods
UriLauncher build() nothrowCreate object from builder. Returns: New object