Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoreLocation] Fix misspelled field. Fixes #21641. #21652

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/CoreLocation/CLLocationManager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ locationManager.StartRangingBeacons(beaconRegion)
<term>The <see cref="P:CoreLocation.CLLocationManager.Delegate" /> property must be assigned to an object whose class implements the <see cref="M:CoreLocation.CLLocationManagerDelegate.LocationsUpdated(CoreLocation.CLLocationManager,CoreLocation.CLLocation[])" /> method.</term>
</item>
<item>
<term>The <see cref="P:CoreLocation.CLLocationManager.DesiredAccuracy" /> property must be set to <see cref="P:CoreLocation.CLLocation.AccuracyBest" /> or <see cref="P:CoreLocation.CLLocation.AccurracyBestForNavigation" />.</term>
<term>The <see cref="P:CoreLocation.CLLocationManager.DesiredAccuracy" /> property must be set to <see cref="P:CoreLocation.CLLocation.AccuracyBest" /> or <see cref="P:CoreLocation.CLLocation.AccuracyBestForNavigation" />.</term>
</item>
</list>
<para>If those conditions are satisfied, the application can request deferred delivery when backgrounded by calling the <see cref="M:CoreLocation.CLLocationManager.AllowDeferredLocationUpdatesUntil(System.Double,System.Double)" /> method.</para>
Expand Down
6 changes: 6 additions & 0 deletions src/corelocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,14 @@ partial interface CLLocation : NSSecureCoding, NSCopying, CKRecordValue {
[Field ("kCLErrorUserInfoAlternateRegionKey")]
NSString ErrorUserInfoAlternateRegionKey { get; }

#if !XAMCORE_5_0
[Obsolete ("Use 'AccuracyBestForNavigation' instead.")]
[Field ("kCLLocationAccuracyBestForNavigation")]
double AccurracyBestForNavigation { get; }
#endif

[Field ("kCLLocationAccuracyBestForNavigation")]
double AccuracyBestForNavigation { get; }

[Field ("kCLLocationAccuracyBest")]
double AccuracyBest { get; }
Expand Down
2 changes: 1 addition & 1 deletion tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56747,7 +56747,7 @@ P:CoreLocation.CLLocation.AccuracyKilometer
P:CoreLocation.CLLocation.AccuracyNearestTenMeters
P:CoreLocation.CLLocation.AccuracyReduced
P:CoreLocation.CLLocation.AccuracyThreeKilometers
P:CoreLocation.CLLocation.AccurracyBestForNavigation
P:CoreLocation.CLLocation.AccuracyBestForNavigation
P:CoreLocation.CLLocation.Altitude
P:CoreLocation.CLLocation.Coordinate
P:CoreLocation.CLLocation.Course
Expand Down
1 change: 0 additions & 1 deletion tests/introspection/ApiTypoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public virtual bool Skip (MemberInfo methodName, string typo)

HashSet<string> allowed = new HashSet<string> () {
"Aac",
"Accurracy",
"Achivements",
"Acos",
"Acosh",
Expand Down