public interface ISystemClipboardAdapter
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Collection<ISystemClipboardItem>> |
pull() |
CompletableFuture<String> |
pullText() |
CompletableFuture<Void> |
push(Collection<ISystemClipboardItem> items)
Pushes provided items list to the system clipboard.
|
CompletableFuture<Void> |
pushText(String text) |
CompletableFuture<Collection<ISystemClipboardItem>> pull()
CompletableFuture<String> pullText()
CompletableFuture<Void> push(Collection<ISystemClipboardItem> items)
Pushes provided items list to the system clipboard. This method is asynchronous and returns a future that should be completed when all items are pushed to the system clipboard.
Note: Default implementation of this method will clear the current system clipboard content
and replace it with the provided items.
If you want to add items to the current clipboard content,
you should use pull()
method to get current clipboard content,
add your items to the list and then push the list back to the system clipboard.
items
- - clipboard items to be pushed to system clipboard.CompletableFuture<Void> pushText(String text)
Copyright © 2024. All rights reserved.