I would like to have a clipboard changed event. So that when another app puts something on the clipboard, that my app can pick it up and do something with it.
For instance, if a device has a hardware scanner that scans barcodes and puts the result on the clipboard, our app should get the read barcode.
I have tried to use my old code for the change event ((AddPrimaryClipChangedListener)) together with Clipboard, but then the changed event is no longer triggered.
Kind regards,
Saskia
// Essentials Team Info
Researched a bit:
API:
public static event EventHandler<ClipboardChangedEventArgs> ClipboardChanged;
public class ClipboardChangedEventArgs: EventArgs
{
}
We don't need to return any information in the eventargs, because our API should return this. It is a generic clipboard changed, we don't know if it is text or other items....
I would like to have a clipboard changed event. So that when another app puts something on the clipboard, that my app can pick it up and do something with it.
For instance, if a device has a hardware scanner that scans barcodes and puts the result on the clipboard, our app should get the read barcode.
I have tried to use my old code for the change event ((AddPrimaryClipChangedListener)) together with Clipboard, but then the changed event is no longer triggered.
Kind regards,
Saskia
// Essentials Team Info
Researched a bit:
*iOS: Need NSNotificationCenter Observer
API:
We don't need to return any information in the eventargs, because our API should return this. It is a generic clipboard changed, we don't know if it is text or other items....