Modernize your apps
通俗解读
在提高 App 的目标 API 级别时,可考虑采用较新的平台功能;这些属于建议和最佳做法,并非强制要求。
- 考虑使用 CameraX(测试版);使用 Jetpack 组件和 Kotlin;遵循隐私要求和最佳做法。
- 添加深色主题和手势导航支持;从 Google Cloud Messaging (GCM) 迁移至最新的 Firebase Cloud Messaging。
- 支持大于 16:9 的宽高比,并使 App 调整大小以填满可用屏幕;仅在万不得已时才声明最大宽高比。
- 添加多窗口支持;如果良好的最小化体验有助于用户,可添加画中画功能;针对屏幕缺口进行优化。
- 不要假设状态栏高度或完整窗口:使用 WindowInsets、View.getLocationInWindow() 和 MotionEvent.getX()/getY(),而非 getLocationOnScreen() 或 getRawX()/getRawY()。
官方原文摘录
As you update the target API level for your apps, consider adopting recent platform features to modernize your apps and delight your users. - Consider using CameraX, which is in Beta, to make the most of using the camera. - Use Jetpack components to help you follow best practices, free you from writing boilerplate …
阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规
开发者关于此条款的案例
暂无案例。