Clipboard.storeAsync

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 [method@Gdk.Clipboard.store_finish].

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 [class@Gtk.Application] is shut down, so you likely don't need to call it.

class Clipboard
void
storeAsync
(,,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

ioPriority int

the I/O priority of the request.

cancellable Cancellable

optional GCancellable object, %NULL to ignore.

callback GAsyncReadyCallback

callback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta