Clipboard.storeAsync
void storeAsync(int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously instructs the clipboard to store its contents remotely.
If the clipboard is not local, this function does nothing but report success.
The callback must call [gdk.clipboard.Clipboard.storeFinish].
The purpose of this call is to preserve clipboard contents beyond the lifetime of an application, so this function is typically called on exit. Depending on the platform, the functionality may not be available unless a "clipboard manager" is running.
This function is called automatically when a
GtkApplicationis shut down, so you likely don't need to call it.
Parameters
ioPriority | the I/O priority of the request |
cancellable | optional [gio.cancellable.Cancellable] object |
callback | callback to call when the request is satisfied |