Class: Gtk::UriLauncher
- Inherits:
-
Object
- Object
- Gtk::UriLauncher
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#can_launch(parent) ⇒ Boolean
Returns whether the launcher is likely to succeed in launching an application for its uri.
-
#initialize(uri) ⇒ Gtk::UriLauncher
constructor
Creates a new
GtkUriLauncherobject. -
#launch(parent, cancellable, callback, user_data) ⇒ nil
Launches an application to open the uri.
-
#launch_finish(result) ⇒ Boolean
Finishes the [methodGtk.UriLauncher.launch] call and returns the result.
-
#uri ⇒ String
The uri to launch.
-
#uri=(uri) ⇒ String
The uri to launch.
Constructor Details
#initialize(uri) ⇒ Gtk::UriLauncher
Creates a new GtkUriLauncher object.
Instance Method Details
#can_launch(parent) ⇒ Boolean
Returns whether the launcher is likely to succeed
in launching an application for its uri.
This can be used to disable controls that trigger
the launcher when they are known not to work.
#launch(parent, cancellable, callback, user_data) ⇒ nil
Launches an application to open the uri.
This may present an app chooser dialog to the user.
#launch_finish(result) ⇒ Boolean
Finishes the [methodGtk.UriLauncher.launch] call and
returns the result.
#uri ⇒ String
The uri to launch.
#uri=(uri) ⇒ String
The uri to launch.