camera.getMetadata
URI가 지정된 파일 메타데이터를 반환합니다. 이미지 헤더
Exif 및 XMP 필드가 나열됩니다. 이 명령어는 API 수준 2에서 지원 중단되었습니다.
매개변수
- fileUri: 타겟 파일의 URI입니다. 제조업체는
절대 또는 상대 URI를 사용할 수 있습니다. 클라이언트는 이를 불투명 식별자로 처리할 수 있습니다.
결과
- metadata: Exif (GPS 정보 포함), Photo Sphere XMP
JSON 형식입니다. 이미지나 썸네일은 포함되지 않습니다.
오류
- missingParameter:
fileUri
가 지정되지 않았습니다.
- invalidParameterName: 입력 매개변수 이름을 인식할 수 없습니다.
- invalidParameterValue: 입력 매개변수는 인식되지만
값이 잘못되었습니다. 예를 들어
fileUri
가 존재하지 않거나 데이터가 없습니다.
유형이 잘못되었습니다.
명령어 I/O |
명령어 입력 |
{ "parameters": { "fileUri": "file URI" } } |
명령어 결과 |
{ "results": { "exif": { ... "ImageWidth": 2000, "ImageLength": 1000, ... }, "xmp": { "ProjectionType": "equirectangular", "UsePanoramaViewer": true, ... } } } |
명령어 출력 (오류) |
{ "error": { "code": "invalidParameterValue", "message": "Parameter fileUri doesn't exist." } } |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[null,null,["최종 업데이트: 2024-08-21(UTC)"],[[["Returns file metadata such as Exif and XMP data for a given file URI."],["This command is deprecated and was previously used in API level 2."],["Important parameters include the `fileUri`, which specifies the location of the target file."],["Potential errors encompass missing or invalid parameters, including an invalid or non-existent `fileUri`."],["The command output provides Exif and Photo Sphere XMP data in JSON format if successful."]]],["This command retrieves a file's metadata using its URI. It's deprecated in API level 2. Input requires a `fileUri`. The output provides Exif data (including GPS) and Photo Sphere XMP in JSON format, excluding the image itself. Possible errors include a missing or invalid `fileUri`, or an unrecognized parameter name. Example input shows providing a file URI, with successful output including `exif` and `xmp` fields, and error output shown when a file URI does not exist.\n"]]