projected-hardware
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePrerequisites
前提条件
- You must use a of 36 or higher.
compileSdk
- 必须使用 36 或更高版本的 。
compileSdk
Connection and lifecycle management
连接与生命周期管理
Intelligent eyewear hardware is only accessible while the glasses are connected
to the host phone. Monitor connection state and manage resource lifecycles using
. You must read
Understand projected activities and projected contexts to understand
how to get a projected context and how to manage its lifecycle.
ProjectedContext只有在眼镜连接到主机手机时,才能访问智能眼镜硬件。使用 监控连接状态并管理资源生命周期。你必须阅读了解投射式 Activity 和投射式 Context,了解如何获取投射式 Context,以及如何管理其生命周期。
ProjectedContextRequest glasses hardware permissions
请求眼镜硬件权限
- Hardware permissions and opt-in : You must read Request hardware permissions to understand how to declare camera and microphone runtime permissions in the Android Manifest file, request runtime permissions in different scenarios, and handle permission results.
- 硬件权限与主动启用:你必须阅读请求硬件权限,了解如何在 Android Manifest 文件中声明摄像头和麦克风的运行时权限、如何在不同场景中请求运行时权限,以及如何处理权限结果。
Glasses hardware access and capabilities
眼镜硬件访问与功能
- Camera capture and CameraX : You must read Capture an image with the glasses' camera to understand the implementation patterns for capturing a photo with the glasses' camera using a .
ProjectedContext
- 摄像头拍摄与 CameraX:你必须阅读使用眼镜摄像头拍摄图像,了解如何使用 实现通过眼镜摄像头拍摄照片的常见模式。
ProjectedContext