英文:
How can I find the current screen scale of my CarPlay screen?
问题
我如何找到我的CarPlay屏幕的当前屏幕比例?
我对如何理解屏幕的当前比例感兴趣。在许多情况下,它是2,但在高分辨率屏幕上,它会切换到比例3。我们需要了解应用程序当前使用的具体比例是多少。
英文:
How can I find the current screen scale of my CarPlay screen?
I'm interested in how to understand the current scale for the screen. In a lot of cases it is 2, but on high resolution screens it turns on scale 3. We need to understand what specific scale is currently used in the application
答案1
得分: 2
这可能是您想要的链接:https://developer.apple.com/documentation/carplay/cpinterfacecontroller/3578118-cartraitcollection
除此之外,我不认为可以读取显示屏的实际尺寸/分辨率。
英文:
This is probably what you want: https://developer.apple.com/documentation/carplay/cpinterfacecontroller/3578118-cartraitcollection
Other than that, I don't think it's possible to read the actual screen size/resolution of the display
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论