Bug 52586 - Missing binding: INPersonHandle.Label (string)
Summary: Missing binding: INPersonHandle.Label (string)
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.4 (C9)
Hardware: PC Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Alex Soto [MSFT]
Depends on:
Reported: 2017-02-16 21:39 UTC by Larry O'Brien
Modified: 2017-03-22 20:24 UTC (History)
3 users (show)

Is this bug a regression?: ---
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-02-16 21:39:35 UTC
In the Intents namespace, INPersonHandle has a nullable "Label" : A standard label that describes the meaning of the information.

Comment 1 Sebastien Pouliot 2017-02-16 21:53:38 UTC
That Label [1] property is of type INPersonHandleLabel [2], which is an NSString-based enum (in ObjC) and an enum in C#.

@Larry does the API accept other values of NSString ?

In that case we could expose the (protected) `WeakLabel`, which is an `NSString`.

[1] https://developer.apple.com/reference/intents/inpersonhandle/2716072-label?language=objc
[2] https://developer.apple.com/reference/intents/inpersonhandlelabel?language=objc
Comment 2 Larry O'Brien 2017-02-16 22:24:39 UTC
If I read the API correctly, the string should be restricted to the constants defined by INPersonHandleLabel, so IMO it should not be the `NSString` but should be `INPersonHandleLabel` enum.
Comment 3 Sebastien Pouliot 2017-02-17 01:13:38 UTC
ok, then it seems to be what we have


If you don't see it inside Xamarin.iOS.dll then please tell us which version you're using.
Comment 4 Manuel de la Peña [MSFT] 2017-03-22 12:42:33 UTC
@Larry can you please confirm what @Sebastien pointed?
Comment 5 Larry O'Brien 2017-03-22 20:02:01 UTC
Yes, @Sebastien is correct. The defect must have been in an earlier version. The API is now correct.
Comment 6 Sebastien Pouliot 2017-03-22 20:24:24 UTC
closing per comment #5