Camera.getMeta Veri
URI'sına göre dosya meta verilerini döndürür. Resim başlığı
EXIF ve XMP alanlarını listeler. Bu komut, API düzeyi 2'de kullanımdan kaldırılmıştır.
Parametreler
- fileUri: Hedef dosyanın URI'si. Üreticiler, projenin
kullanılmasıdır. Müşteriler bunu opak bir tanımlayıcı olarak değerlendirebilir.
Sonuçlar
- metadata: EXIF (GPS bilgileri dahil), Photo Sphere XMP
JSON biçimi. Resim veya küçük resim içermez.
Hatalar
- missingparameter:
fileUri
belirtilmemiş.
- geçersizParametreAdı: Giriş parametresi adı tanınmıyor.
- invalidParameterValue: Giriş parametresi tanınsa da
değer geçersiz; örneğin,
fileUri
mevcut değil veya verileri
türü yanlış.
Komut G/Ç |
Komut Girişi |
{ "parameters": { "fileUri": "file URI" } } |
Komut Çıkışı |
{ "results": { "exif": { ... "ImageWidth": 2000, "ImageLength": 1000, ... }, "xmp": { "ProjectionType": "equirectangular", "UsePanoramaViewer": true, ... } } } |
Komut Çıkışı (Hata) |
{ "error": { "code": "invalidParameterValue", "message": "Parameter fileUri doesn't exist." } } |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-21 UTC.
[null,null,["Son güncelleme tarihi: 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"]]