Just call DocumentCameraScan.Initialize on startup and later call DocumentCameraScan.Scan function to show the dialog. When you set a script with DocumentCameraScan.SetScript to be triggered after the scan, you can use DocumentCameraScan.PageCount to query number of pictures. You can get the pictures with DocumentCameraScan.PageImage function and put them into container. Or use PDFKit functions to build a PDF document.
Included later tonight in 10.0pr7 plugin version. See ContinuityCamera for use of iOS camera for MacOS.