launchDefaultForUriAsync
fun launchDefaultForUriAsync(uri: String, context: AppLaunchContext? = null, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)
Async version of func@Gio.AppInfo.launch_default_for_uri.
This version is useful if you are interested in receiving error information in the case where the application is sandboxed and the portal may present an application chooser dialog to the user.
This is also useful if you want to be sure that the D-Bus–activated applications are really started before termination and if you are interested in receiving error information from their activation.
Since
2.50
Parameters
uri
the uri to show
context
optional launch context
cancellable
a class@Gio.Cancellable
callback
a type@Gio.AsyncReadyCallback to call when the request is done