Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continuity Camera for macOS and iOS

Tags:

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.

Continuity Camera

like image 282
Besi Avatar asked Sep 26 '18 23:09

Besi


2 Answers

You need to use validRequestorForSendType:returnType:. More info in WWDC 2018 Session 209 around minute 36.

like image 174
Holtwick Avatar answered Oct 19 '22 09:10

Holtwick


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!)

like image 32
Wil Shipley Avatar answered Oct 19 '22 09:10

Wil Shipley