     private var deviceDoesNotSupportVideo: Bool!
     
     //MARK: - initalizers
+    
     /**
     initlaize bar code reader view with the specified frame.
     
-    @param frame: CGRect instance to represent the bar code frame.
-    
-    @return a new instance of bar code reader view.
+    - Parameters:
+    - frame: CGRect instance to represent the bar code frame.
+    
+    Returns: a new instance of bar code reader view.
     */
     override public init(frame: CGRect) {
         super.init(frame: frame)


private let queueName = "sa.com.elm.AbhserLite.MetadataOutput"

public protocol BarcodeReaderViewDelegate {
    func barcodeReader(barcodeReader: BarcodeReaderView, didFinishReadingString info: String)
    func barcodeReader(barcodeReader: BarcodeReaderView, didFailReadingWithError error: NSError)
}

public enum BarCodeType: String, CustomStringConvertible {
    case Aztec
    case Code128

}

extension BarcodeReaderView: AVCaptureMetadataOutputObjectsDelegate {
    /**
     this method is the delegate mthode of AVCaptureMetadataOutputObjectsDelegate
     */
    public func captureOutput(captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [AnyObject]!, fromConnection connection: AVCaptureConnection!) {
        let firstObject = metadataObjects.first as? AVMetadataMachineReadableCodeObject
        dispatch_async(dispatch_get_main_queue()) { () -> Void in
