FUISearchBarcodeScanner

public protocol FUISearchBarcodeScanner

Protocol to interact with a Barcode Scanner used by FUISearchBar.

This protocol is the same as FUIBarcodeScanner except that it does not have the delegate property, since SAPFiori will implement its delegate internally.

  • The FUIBarcodeScanMode for this BarcodeScanner.

    Declaration

    Swift

    var scanMode: FUIBarcodeScanMode?
  • Opens an UI which starts the device’s camera and searches for codes to scan.

    Note

    The user will be asked for permission to use the device’s camera.

    Declaration

    Swift

    func scanCode(uiVIew: UIView)

    Parameters

    uiView

    the UIView which is used as a container for the scanner.

  • A textual prompt text which is displayed in the scanners UI.

    Declaration

    Swift

    var promptMessage: String
  • The border color of the code indicator UI element inside the scanner UI.

    Declaration

    Swift

    var indicatorBorderColor: CGColor
  • The border width of the code indicator UI element inside the scanner UI.

    Declaration

    Swift

    var indicatorBorderWidth: CGFloat
  • A closure to transform the scan result string. The transformed string will be used in function didReceiveScanResult of FUIBarcodeScannerDelegate. If this property is nil, the result string from scanner will be used in that function directly without transformation.

    Declaration

    Swift

    var scanResultTransformer: ((String) -> String)?