تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تضبط قيمًا للسمات المحدّدة. على سبيل المثال، نظام تشغيل/إيقاف GPS، والتاريخ الوقت
ISO وتوازن اللون الأبيض وسرعة الغالق وتأخير وضع السكون/إيقاف التشغيل وما إلى ذلك. تم تعديل هذا الأمر في المستوى 2 من واجهة برمجة التطبيقات.
المعلمات
sessionId: معرّف فريد للجلسة من نوع السلسلة، تم الحصول عليه
باستخدام الأمر camera.startSession.
تم إيقاف هذا الحقل في المستوى 2 من واجهة برمجة التطبيقات.
options: أزواج JSON <key, value> من السمات المطلوب ضبطها. تشير رسالة الأشكال البيانية
واحدة من الأنواع التالية: String أو String Array أو Number أو
Number Array، Boolean، Object، Object Array. عرض
الخيارات:
النتائج
لا يؤدي هذا الأمر إلى عرض أي نتيجة.
الأخطاء
مَعلمة مفقودة: يجب توفُّر مَعلمة واحدة أو أكثر من المَعلمات المطلوبة. حيث
مثال، لم يتم تحديد options.
spamparamName: خيارًا واحدًا أو أكثر لمَعلمة إدخال أو أكثر
الاسم غير معروف أو غير متوافق، على سبيل المثال يجب أن يُرجع هذا الرمز إذا
الخيار (مثل captureInterval) من المستوى 2 لواجهة برمجة التطبيقات عند استخدام clientVersion
في Options يساوي 1.
invalidParameterValue: معلَمة إدخال أو اسم خيار واحدة أو أكثر
يتم التعرف عليها، ولكن قيمتها غير صالحة؛ على سبيل المثال، نوع البيانات غير صحيح.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eSets camera properties like GPS, date/time, ISO, and shutter speed.\u003c/p\u003e\n"],["\u003cp\u003eThis command was modified in API level 2, removing the need for a session identifier.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoptions\u003c/code\u003e parameter accepts JSON key-value pairs to configure camera settings.\u003c/p\u003e\n"],["\u003cp\u003ePossible errors include missing parameters, invalid parameter names or values.\u003c/p\u003e\n"]]],["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"],null,["# camera.setOptions\n\nSets values for specified properties; for example, GPS on/off, date \\& time,\nISO, white balance, shutter speed, sleep/power-off delay, and so on. **This command was modified in API level 2.**\n| **Note:** You must call the camera.startSession to obtain a unique session identifier command before calling this command. **This was deprecated in API level 2.**\n\nParameters\n----------\n\n- **sessionId:** Unique session identifier of type string, obtained using the [camera.startSession](/streetview/open-spherical-camera/reference/camera/startsession) command. **This field was deprecated in API level 2.**\n- **options:** JSON `\u003ckey, value\u003e` pairs of the properties to set. The value can be any of the following types: `String`, `String Array`, `Number`, `Number Array`, `Boolean`, `Object`, `Object Array`. See [Options.](/streetview/open-spherical-camera/reference/options)\n\nResults\n-------\n\n- This command returns no result.\n\nErrors\n------\n\n- **missingParameter:** One or more required parameters is missing; for example, `options` is not specified.\n- **invalidParameterName:** One or more input parameter option or option name is unrecognized or unsupported, e.g. this code should be returned if an option (e.g. `captureInterval`) from API level 2 is used when `clientVersion` in [Options](/streetview/open-spherical-camera/reference/options) is 1.\n- **invalidParameterValue:** One or more input parameter or option name is recognized, but its value is invalid; for example, a data type is incorrect.\n\n| Command I/O ----------- ||\n|------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| **Command Input (API level 1)** | ```text { \"parameters\": { \"sessionId\": \"12ABC3\", \"options\": { \"isoBalance\": 200 } } } ``` |\n| **Command Output (API level 1)** | ```text none ``` |\n| **Command Output (Error) (API level 1)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter options contains unsupported option isoBalance.\" } } ``` |\n| **Command Input (API level 2)** | ```text { \"parameters\": { \"options\": { \"iso\": 200, \"captureInterval\": 20 } } } ``` |\n| **Command Output (API level 2)** | ```text none ``` |\n| **Command Output (Error) (API level 2)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter options contains unsupported option captureInterval.\" } } ``` |"]]