Gtk.Clipboard.prototype.request_uris
function request_uris(callback:Gtk.ClipboardURIReceivedFunc):void { // Gjs wrapper for gtk_clipboard_request_uris() }
Requests the contents of the clipboard as URIs. When the URIs are later received callback will be called.
The @uris parameter to callback will contain the resulting array of URIs if the request succeeded, or null if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into URI form.
Since 2.14
- callback
a function to call when the URIs are received, or the retrieval fails. (It will always be called one way or the other.)