Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

Extra feature: Clipboard changed event #696

@agrisyst-slo

Description

@agrisyst-slo

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....

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-to-implementFeature approved, specs written, and ready to implement.up-for-grabsImplementation from community can be started.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions