Disable 3D setting for CarPlay mode (iOS)

Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
matheusgomesms
2025-12-11 09:54:00 -03:00
committed by Matheus Gomes
parent 38fc18b6e6
commit 10398acedb
3 changed files with 8 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ NS_SWIFT_NAME(FrameworkHelper)
+ (void)updatePlacePageData;
+ (void)updateAfterDeleteBookmark;
+ (int)currentZoomLevel;
+ (void)setCarScreenMode:(BOOL)enabled;
@end

View File

@@ -241,4 +241,8 @@
return [[ElevationProfileData alloc] initWithElevationInfo:GetFramework().GetTrackRecordingElevationInfo()];
}
+ (void)setCarScreenMode:(BOOL)enabled {
GetFramework().SetCarScreenMode(enabled);
}
@end

View File

@@ -62,6 +62,8 @@ final class CarPlayService: NSObject {
toWindow: window,
isCarplayActivated: true
)
FrameworkHelper.setCarScreenMode(true)
}
private var savedInterfaceController: CPInterfaceController?
@@ -126,6 +128,7 @@ final class CarPlayService: NSObject {
isCarplayActivated: false
)
}
FrameworkHelper.setCarScreenMode(false)
}
@objc func destroy() {