klip
fun klip(context: KlipContext, attributes: Map<String, String>, source: () -> String): Klip
Content copied to clipboard
Writes or returns klip depending on the working mode.
Return
read klip if it exists and KlipContext.update== false or persisted value that was provided by source otherwise
Parameters
context
KlipContext containing metadata about the klip
source
a provider for a string representation to persist
attributes
klip attributes