Skip to content

CarPlay iOS xcode13.3 beta2

Alex Soto edited this page Mar 7, 2022 · 2 revisions

#CarPlay.framework https://github.com/xamarin/xamarin-macios/pull/14325

diff -ruN /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h
--- /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h	2022-01-25 13:04:20.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h	2022-02-04 13:46:51.000000000 -0500
@@ -11,36 +11,49 @@
 NS_ASSUME_NONNULL_BEGIN
 @class CPTemplateApplicationInstrumentClusterScene;
 
-API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, watchos, tvos)
+API_AVAILABLE(ios(15.4)) API_UNAVAILABLE(macos, watchos, tvos)
 @protocol CPTemplateApplicationInstrumentClusterSceneDelegate <UISceneDelegate>
 
 @optional
 
 /**
-The instrument cluster navigation scene has connected.
-*/
+ The instrument cluster navigation scene has connected.
+ */
 - (void)templateApplicationInstrumentClusterScene:(CPTemplateApplicationInstrumentClusterScene *)templateApplicationInstrumentClusterScene didConnectInstrumentClusterController:(CPInstrumentClusterController *)instrumentClusterController;
 
 /**
-The instrument cluster navigation scene has connected.
-*/
+ The instrument cluster navigation scene has connected.
+ */
 - (void)templateApplicationInstrumentClusterScene:(CPTemplateApplicationInstrumentClusterScene *)templateApplicationInstrumentClusterScene didDisconnectInstrumentClusterController:(CPInstrumentClusterController *)instrumentClusterController;
 
+/**
+ The CarPlay system suggested content style for this scene has changed.
+ */
+- (void)contentStyleDidChange:(UIUserInterfaceStyle)contentStyle;
+
 @end
 
-API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, watchos, tvos)
+API_AVAILABLE(ios(15.4)) API_UNAVAILABLE(macos, watchos, tvos)
 @interface CPTemplateApplicationInstrumentClusterScene : UIScene
 
 /**
-   The delegate for a CPTemplateApplicationInstrumentClusterScene must conform to the CPTemplateApplicationInstrumentClusterSceneDelegate protocol.
-*/
+ The delegate for a CPTemplateApplicationInstrumentClusterScene must conform to the CPTemplateApplicationInstrumentClusterSceneDelegate protocol.
+ */
 @property (nullable, nonatomic, strong) id<CPTemplateApplicationInstrumentClusterSceneDelegate> delegate;
 
-@property (nonnull, nonatomic, strong, readonly) CPInterfaceController *interfaceController;
+/**
+ The instrumentClusterController object for this scene.
+ */
+@property (nonnull, nonatomic, strong, readonly) CPInstrumentClusterController *instrumentClusterController;
+
+/**
+ The current content style for this scene suggested by the connected CarPlay system.
+ */
+@property (nonatomic, readonly) UIUserInterfaceStyle contentStyle;
 
 @end
 
 // A session role which defines a typical interactive application in the CarPlay instrument cluster
-extern UISceneSessionRole const CPTemplateApplicationInstrumentClusterSceneSessionRoleApplication API_AVAILABLE(ios(15.0));
+extern UISceneSessionRole const CPTemplateApplicationInstrumentClusterSceneSessionRoleApplication API_AVAILABLE(ios(15.4));
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h
--- /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h	2022-01-25 12:59:39.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h	2022-02-03 17:12:11.000000000 -0500
@@ -72,6 +72,9 @@
  */
 - (void)templateApplicationScene:(CPTemplateApplicationScene *)templateApplicationScene didSelectManeuver:(CPManeuver *)maneuver;
 
+/**
+ The CarPlay system suggested content style for this scene has changed.
+ */
 - (void)contentStyleDidChange:(UIUserInterfaceStyle)contentStyle API_AVAILABLE(ios(15.4)) API_UNAVAILABLE(macos, watchos, tvos);
 
 @end
Clone this wiki locally