Bug 15030 - [ios7] AVFoundation TypeQRCode (barcode scanner example)
Summary: [ios7] AVFoundation TypeQRCode (barcode scanner example)
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-09-27 01:24 UTC by CraigD
Modified: 2013-09-27 06:34 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Sample code (7.56 KB, application/x-zip-compressed)
2013-09-27 01:24 UTC, CraigD

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description CraigD 2013-09-27 01:24:39 UTC
Created attachment 5001 [details]
Sample code

Attached sample does not appear to work (I've ported some Objective-C from http://nshipster.com/ios7/)

The following line of C# (which seems like it should work) causes a crash

    output.MetadataObjectTypes = new NSString[] {AVMetadataObject.TypeQRCode};

Also, output.AvailableMetadataObjectTypes is empty (zero entries).


p.s. I'm testing on an iPad mini with iOS7 installed.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-09-27 06:34:55 UTC
You need to add the output to the session first:

session.AddOutput (output);

then AvailableMetadataObjectTypes returns a bunch of types (and setting MetadataObjectTypes doesn't crash).