camera.getMetadata
ফাইলের মেটাডেটা তার URI দেওয়া হয়। ইমেজ হেডার Exif এবং XMP ক্ষেত্র তালিকাভুক্ত করে। এপিআই লেভেল 2-এ এই কমান্ডটি বাতিল করা হয়েছে।
পরামিতি
- fileUri: টার্গেট ফাইলের URI। পরম বা আপেক্ষিক URI ব্যবহার করবেন কিনা তা নির্মাতারা সিদ্ধান্ত নেয়। ক্লায়েন্টরা এটিকে একটি অস্বচ্ছ শনাক্তকারী হিসাবে বিবেচনা করতে পারে।
ফলাফল
- মেটাডেটা: Exif (GPS তথ্য সহ), JSON ফর্ম্যাটে ফটো স্ফিয়ার XMP। ছবি বা থাম্বনেইল অন্তর্ভুক্ত করে না।
ত্রুটি
- 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 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-08 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"]]