how to listen the change event of clipboard?
I noticed that clipboard-manager just supports read & write, but how to listen change event?
the official plugin does not have this functionality yet (mainly because there's no OS api for that afaik) but there's a community plugin https://github.com/CrossCopy/tauri-plugin-clipboard which uses https://github.com/ChurchTao/clipboard-rs to also have an event handler (iirc it works by constantly checking the clipboard content itself)
the official plugin does not have this functionality yet (mainly because there's no OS api for that afaik) but there's a community plugin https://github.com/CrossCopy/tauri-plugin-clipboard which uses https://github.com/ChurchTao/clipboard-rs to also have an event handler (iirc it works by constantly checking the clipboard content itself)
Polling can indeed achieve the goal, but the efficiency would be lower. As far as I know, the WinAPI can support monitoring clipboard events on Windows, but it's unclear for other platforms. It would be better the official team can provide a unified interface.