[−][src]Trait image_capture_core::scanner_device::ICScannerDevice
Required methods
unsafe fn availableFunctionalUnitTypes(self) -> id
An array of functional unit types available on this scanner device. This is an array of NSNumber objects whose values are of type ICScannerFunctionalUnitType.
unsafe fn selectedFunctionalUnit(self) -> id
The currently selected functional unit on the scanner device.
unsafe fn transferMode(self) -> ICScannerTransferMode
The transfer mode for scanned document.
unsafe fn setTransferMode(self, transferMode: ICScannerTransferMode)
Set the transfer mode for scanned document.
unsafe fn maxMemoryBandSize(self) -> u32
The total maximum band size requested when performing a ICScannerTransferModeMemoryBased.
unsafe fn setMaxMemoryBandSize(self, maxMemoryBandSize: u32)
Set the total maximum band size requested when performing a ICScannerTransferModeMemoryBased.
unsafe fn downloadsDirectory(self) -> id
The downloads directory.
unsafe fn setDownloadsDirectory(self, downloadsDirectory: id)
Set the downloads directory.
unsafe fn documentName(self) -> id
The document name.
unsafe fn setDocumentName(self, documentName: id)
Set the document name.
unsafe fn documentUTI(self) -> id
The document UTI. Currently supported UTIs are: kUTTypeJPEG, kUTTypeJPEG2000, kUTTypeTIFF, kUTTypePNG etc.
unsafe fn setDocumentUTI(self, documentUTI: id)
Set the document UTI.
unsafe fn defaultUsername(self) -> id
If the device is protected, instead of prompting the user for a username, this property can be set to default to a specific username as a convience. The value will persist until reset by setting it to nil.
unsafe fn setDefaultUsername(self, defaultUsername: id)
Set the default username
unsafe fn requestOpenSessionWithCredentials(self, username: id, password: id)
This message requests to open a session on the protected device with the authorized username and passcode. If the device reports back a failure of credentials, they can be provided here for the launch. A client MUST open a session on a device in order to use the device.
unsafe fn requestSelectFunctionalUnit(self, type_: id)
Requests the scanner device to select a functional unit.
unsafe fn requestOverviewScan(self)
Starts an overview scan on selectedFunctionalUnit.
unsafe fn requestScan(self)
Starts a scan on selectedFunctionalUnit.
unsafe fn cancelScan(self)
cancelScan
Implementations on Foreign Types
impl ICScannerDevice for id
[src]
impl ICScannerDevice for id
unsafe fn availableFunctionalUnitTypes(self) -> id | [src] |
unsafe fn selectedFunctionalUnit(self) -> id | [src] |
unsafe fn transferMode(self) -> ICScannerTransferMode | [src] |
unsafe fn setTransferMode(self, transferMode: ICScannerTransferMode) | [src] |
unsafe fn maxMemoryBandSize(self) -> u32 | [src] |
unsafe fn setMaxMemoryBandSize(self, maxMemoryBandSize: u32) | [src] |
unsafe fn downloadsDirectory(self) -> id | [src] |
unsafe fn setDownloadsDirectory(self, downloadsDirectory: id) | [src] |
unsafe fn documentName(self) -> id | [src] |
unsafe fn setDocumentName(self, documentName: id) | [src] |
unsafe fn documentUTI(self) -> id | [src] |
unsafe fn setDocumentUTI(self, documentUTI: id) | [src] |
unsafe fn defaultUsername(self) -> id | [src] |
unsafe fn setDefaultUsername(self, defaultUsername: id) | [src] |
unsafe fn requestOpenSessionWithCredentials(self, username: id, password: id) | [src] |
unsafe fn requestSelectFunctionalUnit(self, type_: id) | [src] |
unsafe fn requestOverviewScan(self) | [src] |
unsafe fn requestScan(self) | [src] |
unsafe fn cancelScan(self) | [src] |