Bug 58512 - Vision.VNDetectBarcodesRequest.SupportedSymbologies and .Symbologies should be VNBarcodeSymbology, not string
Summary: Vision.VNDetectBarcodesRequest.SupportedSymbologies and .Symbologies should b...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.99 (xcode9)
Hardware: PC Mac OS
: Normal normal
Target Milestone: Xcode9
Assignee: Alex Soto [MSFT]
Depends on:
Reported: 2017-08-01 00:53 UTC by Larry O'Brien
Modified: 2017-08-01 20:31 UTC (History)
2 users (show)

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

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 Larry O'Brien 2017-08-01 00:53:48 UTC
According to https://developer.apple.com/documentation/vision/vndetectbarcodesrequest the types for the properties are:

class var supportedSymbologies: [VNBarcodeSymbology]
var symbologies: [VNBarcodeSymbology]

while the current iOS 11 bindings have them as:

public static string[] SupportedSymbologies { get; }
public virtual string[] Symbologies { get; set; }"


Version: (Visual Studio Community)
Hash: ab7de15
Branch: xcode9
Build date: 2017-07-28 09:45:07-1000
Comment 1 Sebastien Pouliot 2017-08-01 03:05:54 UTC
It's a NSString subclass, i.e. from ObjC header (or web docs)

> typedef NSString *VNBarcodeSymbology;

that we expose as a smart enum, so it should be NSString (virtual) with (non-virtual) wrappers for the enum.

@Alex please check that no other cases exists.
Comment 2 Alex Soto [MSFT] 2017-08-01 16:53:14 UTC
PR => https://github.com/xamarin/xamarin-macios/pull/2397
Comment 3 Alex Soto [MSFT] 2017-08-01 20:31:53 UTC
Fixed in xamarin-macios/xcode9 @ 463f83eb3320d002808bf84679bc85a866ec2a5e