Mac Developer Library

Developer

IKScannerDeviceView Class Reference

Options
Deployment Target:

On This Page

IKScannerDeviceView

The IKScannerDeviceView class displays a view that allows scanning. It can be customized by specifying the display mode. The delegate receives the scanned data and must implement the IKScannerDeviceViewDelegate protocol.

  • The device used for scanning

    Declaration

    @property(assign) ICScannerDevice *scannerDevice

  • These constants determine how the scanner data is returned to the delegate. They are used by the transferMode property.

    Declaration

    enum { IKScannerDeviceViewTransferModeFileBased = 0, IKScannerDeviceViewTransferModeMemoryBased }; typedef NSInteger IKScannerDeviceViewTransferMode;

    Constants

    • IKScannerDeviceViewTransferModeFileBased

      The scanned content will be saved to the specified download directory.

    • IKScannerDeviceViewTransferModeMemoryBased

      The scanned data is returned to the delegate as a NSData object.

  • These constants specify the display mode the scanner view will use. They are used by the mode property.

    Declaration

    enum { IKScannerDeviceViewDisplayModeSimple, IKScannerDeviceViewDisplayModeAdvanced }; typedef NSInteger IKScannerDeviceViewDisplayMode;

    Constants

    • IKScannerDeviceViewDisplayModeSimple

      The view will display in simple mode.

    • IKScannerDeviceViewDisplayModeAdvanced

      The view will display in advanced mode.