बताई गई प्रॉपर्टी के लिए वैल्यू सेट करता है; उदाहरण के लिए, GPS चालू/बंद, तारीख और समय,
ISO, व्हाइट बैलेंस, शटर स्पीड, स्लीप/पावर-ऑफ़ डिले वगैरह. इस निर्देश में, एपीआई लेवल 2 में बदलाव किया गया था.
पैरामीटर
sessionId: प्रकार स्ट्रिंग का यूनीक सेशन आइडेंटिफ़ायर, मिला
ऐसा करने के लिए, camera.startSession निर्देश का इस्तेमाल करें.
इस फ़ील्ड को एपीआई लेवल 2 में बंद कर दिया गया था.
options: सेट की जाने वाली प्रॉपर्टी के JSON <key, value> पेयर. कॉन्टेंट बनाने
वैल्यू इनमें से किसी भी तरह की हो सकती है: String, String Array, Number,
Number Array, Boolean, Object, Object Array. यहां जाएं:
विकल्प.
नतीजे
इस निर्देश से कोई नतीजा नहीं मिलता.
गड़बड़ियां
वैल्यू मौजूद नहीं है: एक या उससे ज़्यादा ज़रूरी पैरामीटर मौजूद नहीं हैं; इसके लिए
उदाहरण के लिए, options बताया नहीं गया है.
अमान्य पैरामीटर का नाम: एक या उससे ज़्यादा इनपुट पैरामीटर का विकल्प या विकल्प
नाम पहचाना नहीं जा सका या इस्तेमाल नहीं किया जा सकता, उदाहरण के लिए यह कोड वापस आना चाहिए अगर
एपीआई लेवल 2 से मिले विकल्प (जैसे कि captureInterval) का इस्तेमाल तब किया जाता है, जब clientVersionOptions में 1 है.
invalidParameterValue: एक या उससे ज़्यादा इनपुट पैरामीटर या विकल्प का नाम
को पहचान लिया गया है, लेकिन इसका मान अमान्य है; उदाहरण के लिए, डेटा टाइप गलत है.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["Sets camera properties like GPS, date/time, ISO, and shutter speed."],["This command was modified in API level 2, removing the need for a session identifier."],["`options` parameter accepts JSON key-value pairs to configure camera settings."],["Possible errors include missing parameters, invalid parameter names or values."]]],["This command sets properties like GPS, date/time, ISO, white balance, and shutter speed. In API level 1, it required a unique `sessionId` from `camera.startSession`; this is deprecated in API level 2. The input includes `options` as JSON key-value pairs to define the properties. API level 1 needed a sessionId, API level 2 removed it. No results are returned, but errors cover missing, invalid parameter names or values. The command input shows how to define parameters for both API levels.\n"]]