Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Appleはここに近接センサーを文書化しているので、それはパブリックAPIだと思います。他のことを聞いたことがあり、ストアに送信する前に再確認したいと思いました。
以前は近接センサーがプライベートAPIでしたが、かなりの抗議の末、AppleはそれをパブリックAPIにしました。
APIを使用UIDeviceすると、提供したリンクに記載されているように、必要に応じて近接センサーにクエリを実行できます。
UIDevice