Skip to content

CoreMotion iOS xcode13.0 beta3

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

#CoreMotion.framework ##mandel

diff -ruN /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h
--- /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h	2021-06-22 17:35:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h	2021-07-13 00:39:33.000000000 -0400
@@ -83,37 +83,26 @@
  *  Discussion:
  *      Determines whether the device supports reporting the absolute altitude.
  */
-+ (BOOL)isAbsoluteAltitudeAvailable API_AVAILABLE(ios(14.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
++ (BOOL)isAbsoluteAltitudeAvailable API_AVAILABLE(ios(15.0), watchos(8.0)) API_UNAVAILABLE(macos, tvos);
 
 /*
  *  startAbsoluteAltitudeUpdatesToQueue:withHandler:
  *
  *  Discussion:
- *      Starts absolute altitude updates, providing data to the given handler on the given queue
- *      at intervals specified by absoluteAltitudeUpdateInterval.
+ *      Starts real-time absolute altitude updates, providing data to the given handler on the given queue, whenever a change in elevation is detected.
  *
  *      Calls to start must be balanced with calls to stopAbsoluteAltitudeUpdates even if an error
  *      is returned to the handler.
  */
 
-- (void)startAbsoluteAltitudeUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMAbsoluteAltitudeHandler)handler API_AVAILABLE(ios(14.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
+- (void)startAbsoluteAltitudeUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMAbsoluteAltitudeHandler)handler API_AVAILABLE(ios(15.0), watchos(8.0)) API_UNAVAILABLE(macos, tvos);
 /*
  *  stopAbsoluteAltitudeUpdates
  *
  *  Discussion:
  *      Stops absolute altitude updates.
  */
-- (void)stopAbsoluteAltitudeUpdates API_AVAILABLE(ios(14.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
-
-/*
- *  absoluteAltitudeUpdateInterval
- *
- *  Discussion:
- *      The interval, in seconds, at which absolute altitude data is to be delivered to the specified
- *      handler once startAbsoluteAltitudeUpdatesToQueue:withHandler is called. The value of this
- *      property is capped to a minimum of 250ms and a maximum of 300s. The default value is 1s.
- */
-@property(assign, nonatomic) NSTimeInterval absoluteAltitudeUpdateInterval API_AVAILABLE(ios(14.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
+- (void)stopAbsoluteAltitudeUpdates API_AVAILABLE(ios(15.0), watchos(8.0)) API_UNAVAILABLE(macos, tvos);
 
 @end
 
Clone this wiki locally