Skip to content

Commit

Permalink
[CoreLocation] Fix misspelled field. Fixes #21641. (#21652)
Browse files Browse the repository at this point in the history
Fixes #21641.
  • Loading branch information
rolfbjarne authored Nov 19, 2024
1 parent 6bfecec commit 34666f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
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

6 comments on commit 34666f5

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.