Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check clipboard / pasteboard type [iOS] #64

Open
filiptronicek opened this issue Jul 21, 2020 · 1 comment
Open

Check clipboard / pasteboard type [iOS] #64

filiptronicek opened this issue Jul 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@filiptronicek
Copy link

filiptronicek commented Jul 21, 2020

Describe the Feature

During WWDC 2020, Apple announced a feature in iOS 14, which alerts the user, if an app reads from the clipboard. This has caused a lot of problems and bad PR since, so I would suggest we implement the contains(pasteboard) API here.

It basically just checks the clipboard for a type of data, without that pesky notification.

9to5Mac article

Possible Implementations

The hardest thing about this would be the port, we could name the functions similarly.

E.g.:

Clipboard.hasURL() // => bool
Clipboard.hasText() // => bool

or

Clipboard.contains(String) // where String is one of the types

Related Issues

#56

Edit:

Clipboard.hasString() has been implemented in #73
Clipboard.hasURL() has been implemented in #78

Waiting for

  • Clipboard.hasBool()
  • Clipboard.hasImage()?
@kevinchou723
Copy link

is there a way to make it detect a pattern? Something like Clipboard.hasPattern(\myPattern\)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants