Exemple #1
0
 public static void DidDropSampleBuffer(IAVCaptureAudioDataOutputSampleBufferDelegate This, AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection)
 {
 }
Exemple #2
0
 public void DidOutputMetadataObjects(AVFoundation.AVCaptureMetadataOutput captureOutput, AVFoundation.AVMetadataObject[] metadataObjects, AVFoundation.AVCaptureConnection connection)
 {
     if (null != captureOutput && metadataObjects.Length > 0 && canReceiveData)
     {
         canReceiveData = false;
         AVMetadataMachineReadableCodeObject metadataObj = metadataObjects [0] as AVMetadataMachineReadableCodeObject;
         NSString result = new NSString();
         if (metadataObj.Type.Equals(AVMetadataObjectType.QRCode))
         {
             result = new NSString(metadataObj.StringValue);
         }
         else
         {
             result = new NSString("It's not a QRCode.");
         }
         this.PerformSelector(new ObjCRuntime.Selector("reportScanResult:"), NSThread.MainThread, result, false);
     }
 }
Exemple #3
0
 public virtual void DidDropSampleBuffer(AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection)
 {
 }