מחזירה את ההגדרות הנוכחיות של הנכסים המבוקשים. הפקודה הזו שונתה ברמת API 2.
פרמטרים
sessionId: מזהה הסשן הייחודי של מחרוזת הסוג שהושגה
באמצעות הפקודה camera.startSession.
השדה הזה הוצא משימוש ברמת API 2.
optionNames: מערך מחרוזות של שמות המאפיינים שרוצים להחזיר.
תוצאות
אפשרויות: זוגות <key, value> של JSON של המאפיינים המבוקשים.
הערך יכול להיות כל אחד מהסוגים הבאים: String, String Array, Number,
Number Array, Boolean, Object, Object Array. צפייה
אפשרויות.
שגיאות
missingParameter: חסר פרמטר נדרש אחד או יותר;
לדוגמה, optionNames לא צוין.
invalidParameterName: שם או אפשרות אחת או יותר של פרמטר הקלט
הוא לא מזוהה או לא נתמך, למשל: צריך להחזיר את הקוד הזה אם
האפשרות (למשל captureInterval) מרמת API 2 נמצאת בשימוש כאשר clientVersion
בOptions הוא 1.
invalidParameterValue: שמות פרמטרים של קלט מזוהים, אבל
אחד או יותר מהערכים אינם חוקיים; לדוגמה, sessionId לא קיים,
לא פעיל, או שסוג הנתונים שלו שגוי. קוד השגיאה הזה הוצא משימוש ב-
רמת API 2 מכיוון שכאשר שם של אפשרות כלשהו אינו חוקי, invalidParameterName
שצריך להחזיר.
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["This command returns current camera settings for the requested properties, specified in `optionNames`."],["API level 2 removed the requirement for a `sessionId`, obtained from `camera.startSession`."],["Results are provided in JSON format as `\u003ckey, value\u003e` pairs within the `options` field."],["Possible errors include `missingParameter` if required parameters are absent and `invalidParameterName` for unsupported option names."],["`invalidParameterValue` error was deprecated in API level 2 and replaced with `invalidParameterName` for invalid option names."]]],["This command retrieves current settings for specified properties. It requires an array of `optionNames` to be provided. It returns a JSON object containing `\u003ckey, value\u003e` pairs of the requested properties within the `options` field. API level 1 required a `sessionId` obtained from `camera.startSession`, but this is deprecated in API level 2. Errors include `missingParameter`, `invalidParameterName` for unrecognized parameters, and `invalidParameterValue` for incorrect values in API 1.\n"]]