storeAsync

open fun storeAsync(ioPriority: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously instructs the @clipboard to store its contents remotely.

If the clipboard is not local, this function does nothing but report success.

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 ../gtk4/class.Application.html is shut down, so you likely don't need to call it.

Parameters

ioPriority

the I/O priority of the request

cancellable

optional GCancellable object

callback

callback to call when the request is satisfied