In macOS Mojave the continuity camera was introduced. Letting the user take pictures on the iPhone or iPad right into an application on the mac such as Notes, Messages, Keynote, Mail and TextEdit.
Is this functionality available for third party developers.
https://www.apple.com/macos/mojave/
Continuity Camera
Take a photo right to your Mac. Now you can use your iPhone to shoot or scan a nearby object or document and have it automatically appear on your Mac. Just choose Insert a Photo from the File menu. You can take a photo of something on your desk and instantly see it in your Pages document. Or scan a receipt, and a straightened version is immediately available in the Finder as a PDF. Continuity Camera works in the Finder, Mail, Messages, Notes, Pages, Keynote, and Numbers. It’s another way iPhone and Mac just click.
You need to use validRequestorForSendType:returnType:
. More info in WWDC 2018 Session 209 around minute 36.
Thomas Zoechling wrote a little sample project that you can use to get continuity scanning working — it's pretty touchy and VERY inflexible. (Eg, there's no way to just directly invoke the Continuity Camera from your own code, you HAVE to use an NSMenu!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With