Skip to content

CoreMotion macOS xcode16.0 b2

Rolf Bjarne Kvinge edited this page Jul 11, 2024 · 3 revisions

#CoreMotion.framework https://github.com/xamarin/xamarin-macios/pull/20862

diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h	2024-05-30 03:10:54
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h	2024-06-15 11:49:06
@@ -53,6 +53,14 @@
 @property(weak, nonatomic, nullable) id<CMHeadphoneMotionManagerDelegate> delegate;
 
 /*
+ *  connectionStatusActive
+ *
+ *  Discussion:
+ *    Determines whether the CMHeadphoneMotionManager is currently providing connection updates to the delegate.
+ */
+@property(readonly, nonatomic, getter=isConnectionStatusActive) BOOL connectionStatusActive;
+
+/*
  *  deviceMotionAvailable
  *
  *  Discussion:
@@ -102,6 +110,23 @@
  *    Stops device motion updates.
  */
 - (void)stopDeviceMotionUpdates;
+
+/*
+ *  startConnectionStatusUpdates
+ *
+ *  Discussion:
+ *    Starts event updates to the delegate object. This can be used to register for delegate updates before requesting device motion data.
+ *
+ */
+- (void)startConnectionStatusUpdates;
+
+/*
+ *  stopConnectionStatusUpdates
+ *
+ *  Discussion:
+ *    Stops connection status updates to the delegate object. This only applies if startConnectionStatusUpdates was called.
+ */
+- (void)stopConnectionStatusUpdates;
 
 @end
 
Clone this wiki locally