Platforms to show: All Mac Windows Linux Cross-Platform
Back to ImageCaptureEventsMBS class.
ImageCaptureEventsMBS.scannerDeviceDidBecomeAvailable(scanner as ICScannerDeviceMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Scanners require exclusive access, only one client can open a session on a scanner. The scanner is available if it does not have a session opened by another client. Attempting to open a session on a scanner that already has an open session for another client will result in an error. A client that wants to open a session on a scanner as soon as it is available should implement this method and send "requestOpenSession" message to scanner object from that method.
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceDidCompleteOverviewScanWithError(scanner as ICScannerDeviceMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceDidCompleteScanWithError(scanner as ICScannerDeviceMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceDidScanToBandData(scanner as ICScannerDeviceMBS, Data as ICScannerBandDataMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
In memory transfer mode, this will send a band of size that has been selected by the client via the maxMemoryBandSize property.
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceDidScanToURL(scanner as ICScannerDeviceMBS, URL as string, file as folderitem, data as MemoryBlock)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If selectedFunctionalUnit is a document feeder, then this event will be sent once for each scanned page.
This event is sent when the scanner device receives the requested scan. If selectedFunctionalUnit is a document feeder, then this event will be sent once for each scanned page.
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceDidSelectFunctionalUnit(scanner as ICScannerDeviceMBS, functionalUnit as Variant, Error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A functional unit is selected immediately after the scanner device is instantiated and in response to requestSelectFunctionalUnit method.
Some examples using this event:
ImageCaptureEventsMBS.scannerDeviceViewDidEncounterError(scannerDeviceView as IKScannerDeviceViewMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
ImageCaptureEventsMBS.scannerDeviceViewDidScanToBandData(scannerDeviceView as IKScannerDeviceViewMBS, data as ICScannerBandDataMBS, scanInfo as Dictionary, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The 'data' parameter describes the scanned image data. Note that rotation/cropping/image adjustments are not applied yet. The 'scanInfo' parameter contains additional information (rotation angle, ...) that should be applied once the scan is completed.
Only called if transfermode is ICScannerTransferModeMemoryBased.
ImageCaptureEventsMBS.scannerDeviceViewDidScanToURL(scannerDeviceView as IKScannerDeviceViewMBS, url as String, file as FolderItem, fileData as MemoryBlock, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Image Capture | MBS AVFoundation Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Based on the IKScannerDeviceViewTransferMode the downloaded file will be saved on disk using the 'url', or returned in memory as Memoryblock.
The items on this page are in the following plugins: MBS AVFoundation Plugin.