Skip to content

CoreMotion iOS xcode16.0 b2

Rolf Bjarne Kvinge edited this page Jun 26, 2024 · 4 revisions

#CoreMotion.framework

diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h	2024-05-31 07:37:27
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h	2024-06-18 06:11:25
@@ -98,7 +98,6 @@
  *
  *  Discussion:
  *    Starts headphone activity updates, providing data to the given handler through the given queue.
- *
  */
 - (void)startActivityUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMHeadphoneActivityHandler)handler;
 
@@ -114,9 +113,8 @@
  *  startStatusUpdatesToQueue:withHandler:
  *
  *  Discussion:
- *    Starts headphone status updates (CMHeadphoneActivityStatusConnected and CMHeadphoneActivityStatusDisconnected),
- *    providing data to the given handler through the given queue.
- *
+ *    Starts headphone status updates (Connected/Disconnected), providing data to the given handler through the given queue.
+ *    Connected will only be sent when a compatible headphone is connected.
  */
 - (void)startStatusUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMHeadphoneActivityStatusHandler)handler;
 
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h	2024-05-31 07:37:27
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h	2024-06-18 06:11:25
@@ -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