camera.getMetadata
指定された URI で指定されたファイルのメタデータを返します。画像ヘッダー
Exif と XMP のフィールドを示しますこのコマンドは API レベル 2 で非推奨になりました。
パラメータ
- fileUri: ターゲット ファイルの URI。メーカーが決定
絶対または相対 URI を使用しますクライアントはこれを不透明な識別子として扱う場合があります。
結果
- metadata: Exif(GPS 情報を含む)、360°写真(XMP)
JSON 形式。画像やサムネイルは含まれません。
エラー
- missingParameter:
fileUri
が指定されていません。
- invalidParameterName: 入力パラメータ名を認識できません。
- invalidParameterValue: 入力パラメータは認識されますが、
value が無効です。たとえば、
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." } } |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]