我如何找到我的CarPlay屏幕的当前屏幕比例?

huangapple go评论98阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月24日 21:59:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76324356.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定