问题
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.
回答1:
You need to use validRequestorForSendType:returnType:. More info in WWDC 2018 Session 209 around minute 36.
来源:https://stackoverflow.com/questions/52527491/continuity-camera-for-macos-and-ios