camera.get 中繼資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
根據 URI 傳回檔案中繼資料。圖片標題
會列出 EXIF 和 XMP 欄位。這個指令已在 API 級別 2 中淘汰。
參數
- fileUri:目標檔案的 URI。製造商可自行決定
使用絕對或相對 URI用戶端可能會將此 ID 視為不透明 ID。
結果
- metadata:EXIF (包括 GPS 資訊)、Photo3 XMP 圖像
YAML 或 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."
}
} |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-08-21 (世界標準時間)。"],[],["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"]]