store_async


Description:

public async bool store_async (int io_priority, Cancellable? cancellable) throws Error

Asynchronously instructs the this to store its contents remotely.

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

The callback must call [[email protected]_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 [[email protected]] is shut down, so you likely don't need to call it.

Parameters:

this

a `GdkClipboard`

io_priority

the I/O priority of the request

cancellable

optional `GCancellable` object

callback

callback to call when the request is satisfied

user_data

the data to pass to callback function




2022 vala-language.org