Skip to content

Watch clipboard for all content types and return a type with the content #89

@xiebruce

Description

@xiebruce

I need to watch if the clipboard is changed at a time, and return the bytes with a type, so I can deal with it.

for now, I need do

textBytes, := clipboard.Watch(context.Background(), clipboard.FmtText)
imageBytes := clipboard.Watch(context.Background(), clipboard.FmtImage)

but I hope I can do this

clipBytes,contentType := clipboard.Watch(context.Background())

because we don't need to watch clipboard two times right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions