Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-15 18:17:04 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 0 deletions

View File

@@ -43,6 +43,10 @@ import java.util.Set;
* through the {@link CameraManager CameraManager}
* interface with {@link CameraManager#getCameraCharacteristics}.</p>
*
* <p>When obtained by a client that does not hold the CAMERA permission, some metadata values are
* not included. The list of keys that require the permission is given by
* {@link #getKeysNeedingPermission}.</p>
*
* <p>{@link CameraCharacteristics} objects are immutable.</p>
*
* @see CameraDevice

View File

@@ -362,6 +362,11 @@ public final class CameraManager {
* cameras that can only be used as part of logical multi-camera. These cameras cannot be
* opened directly via {@link #openCamera}</p>
*
* <p>Also starting with API level 29, while most basic camera information is still available
* even without the CAMERA permission, some values are not available to apps that do not hold
* that permission. The keys not available are listed by
* {@link CameraCharacteristics#getKeysNeedingPermission}.</p>
*
* @param cameraId The id of the camera device to query. This could be either a standalone
* camera ID which can be directly opened by {@link #openCamera}, or a physical camera ID that
* can only used as part of a logical multi-camera.