ScanProcessor

public class ScanProcessor

Class for processing a scanned Usher Code

  • Initialization

    Declaration

    Swift

    public init()
  • Scan processing completion block

    Declaration

    Swift

    public typealias ScanProcessorCompletion = ((_ result: ScanProcessorResult) -> Void)
  • Process a scanned code.

    Declaration

    Swift

    public func process(_ code: String, type: AVMetadataObject.ObjectType, completion: ScanProcessorCompletion?)
    Parameters
    code

    String representation of the scanned code.

    type

    The type of the scanned code as reported by iOS.

    completion

    The completion block that will be called with the result of scan processing