Skip to content

CoreLocation macOS xcode13.0 beta4

Manuel de la Pena edited this page Jul 29, 2021 · 3 revisions

#CoreLocation.framework https://github.com/xamarin/xamarin-macios/pull/12298

diff -ruN /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h
--- /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h	2021-07-13 00:40:25.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h	2021-07-23 13:32:58.000000000 -0400
@@ -205,6 +205,36 @@
 @end
 
 /*
+ * CLLocationSourceInformation
+ *
+ * Discussion:
+ * 	For a CLLocation, represents information about the source of the location, including whether it came from a simulator
+ */
+CL_EXTERN
+API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0))
+@interface CLLocationSourceInformation : NSObject <NSCopying, NSSecureCoding>
+
+- (instancetype)initWithSoftwareSimulationState:(BOOL)isSoftware
+					  andExternalAccessoryState:(BOOL)isAccessory;
+
+/*
+ * isSimulatedBySoftware
+ *
+ * Discussion:
+ *	Set to YES if this location was detected as being generated by a software simulator, such as Xcode
+ */
+@property(readonly, nonatomic) BOOL isSimulatedBySoftware;
+
+/*
+ * isProducedByAccessory
+ *
+ * Discussion:
+ * 	Set to YES if this location was generated from an external accessory, such as CarPlay or an MFi accessory
+ */
+@property(readonly, nonatomic) BOOL isProducedByAccessory;
+@end
+
+/*
  *  CLLocation
  *  
  *  Discussion:
@@ -270,6 +300,23 @@
     timestamp:(NSDate *)timestamp API_AVAILABLE(ios(13.4), macos(10.15.4), watchos(6.2), tvos(13.4));
 
 /*
+ *  initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo
+ *
+ *  Discussion:
+ *    Initialize with the specified parameters.
+ */
+- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
+	altitude:(CLLocationDistance)altitude
+	horizontalAccuracy:(CLLocationAccuracy)hAccuracy
+	verticalAccuracy:(CLLocationAccuracy)vAccuracy
+	course:(CLLocationDirection)course
+	courseAccuracy:(CLLocationDirectionAccuracy)courseAccuracy
+	speed:(CLLocationSpeed)speed
+	speedAccuracy:(CLLocationSpeedAccuracy)speedAccuracy
+	timestamp:(NSDate *)timestamp
+	sourceInfo:(CLLocationSourceInformation*)sourceInfo API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0));
+
+/*
  *  coordinate
  *  
  *  Discussion:
@@ -286,6 +333,15 @@
 @property(readonly, nonatomic) CLLocationDistance altitude;
 
 /*
+ *  ellipsoidalAltitude
+ *
+ *  Discussion:
+ *    Returns the ellipsoidal altitude of the location under the WGS 84 reference frame.
+ *    Can be positive or negative.
+ */
+@property(readonly, nonatomic) CLLocationDistance ellipsoidalAltitude API_AVAILABLE(ios(15), macos(12), watchos(8), tvos(15));
+
+/*
  *  horizontalAccuracy
  *  
  *  Discussion:
@@ -355,6 +411,14 @@
 @property(readonly, nonatomic, copy, nullable) CLFloor *floor API_AVAILABLE(ios(8.0), macos(10.15));
 
 /*
+ *  sourceInformation
+ *
+ *  Discussion:
+ *    Contains information about the source of this location.
+ */
+@property(readonly, nonatomic, nullable) CLLocationSourceInformation *sourceInformation API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0));
+
+/*
  *  getDistanceFrom:
  *
  *  Discussion:
Clone this wiki locally