setContent

open fun setContent(provider: ContentProvider? = null): Boolean

Sets a new content provider on @clipboard.

The clipboard will claim the GdkDisplay's resources and advertise these new contents to other applications.

In the rare case of a failure, this function will return false. The clipboard will then continue reporting its old contents and ignore

Return

true if setting the clipboard succeeded

Parameters

provider

the new contents of @clipboard or null to clear the clipboard