I'm working on a non-CarPlay iOS application and need to determine if the device is currently connected to CarPlay. However, I am not building a CarPlay-enabled app, so I can't directly use CarPlay-specific APIs.
Is there any way to programmatically detect whether an iPhone is connected to CarPlay from a regular app? If so, how can I implement this in my iOS app?
Context:
- iOS Version: 16.0
- Xcode Version: 15.4
- Swift / Objective-C
- Non-CarPlay-enabled app