VLDOCRViewController

Objective-C

@interface VLDOCRViewController : UIViewController

Swift

class VLDOCRViewController : UIViewController

The VLDOCRViewController is the VLDOCRController fully implemented in a view controller with the peripheral overlay and display of partial results.

  • The object that acts as the delegate of the OCR view controller.

    Must conform to VLDOCRViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<VLDOCRViewControllerDelegate> delegate;

    Swift

    weak var delegate: VLDOCRViewControllerDelegate? { get set }
  • Initializes VLDOCRViewController with a specific peripheral.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithOCRPeripheralID:(NSUInteger)peripheralID;

    Swift

    init?(ocrPeripheralID peripheralID: UInt)

    Parameters

    peripheralID

    the ID of the peripheral to perform OCR on.

  • Initializes VLDOCRViewController with a specific peripheral and glucose unit.

    Note: If the peripheral is not of type Glucose Meter an exception will be thrown.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithOCRPeripheralID:(NSUInteger)peripheralID
                                          glucoseUnit:(id)unit;

    Swift

    init?(ocrPeripheralID peripheralID: UInt, glucoseUnit unit: Any!)

    Parameters

    peripheralID

    the ID of the peripheral to perform OCR on.

    unit

    the VLDGlucoseUnit to use as the unit.