Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Muestra la configuración actual de las propiedades solicitadas. Este comando se modificó en el nivel de API 2.
Parámetros
sessionId: Identificador único de la sesión del tipo de string obtenido
con el comando camera.startSession.
Este campo dejó de estar disponible en el nivel de API 2.
optionNames: Es un array de cadenas de nombres de propiedades que se mostrarán.
Resultados
options:Pares JSON <key, value> de las propiedades solicitadas.
El valor puede ser cualquiera de los siguientes tipos: String, String Array, Number,
Number Array, Boolean, Object y Object Array. Consulta
Opciones.
Errores
missingParameter: Faltan uno o más parámetros obligatorios.
Por ejemplo, no se especifica optionNames.
invalidParameterName: opción o nombre del parámetro de entrada
no se reconoce o no se admite, p.ej., debería devolverse este código si un
la opción (p.ej., captureInterval) del nivel de API 2 se usa cuando clientVersion
en Options es 1.
invalidParameterValue: Se reconocen los nombres de los parámetros de entrada, pero
uno o más valores no son válidos; Por ejemplo, sessionId no existe,
está inactivo o su tipo de datos es incorrecto. Este código de error dejó de estar disponible en
Nivel de API 2, ya que cuando cualquier nombre de opción no es válido, invalidParameterName
debería mostrarse.
[null,null,["Última actualización: 2024-08-21 (UTC)"],[[["\u003cp\u003eThis command returns current camera settings for the requested properties, specified in \u003ccode\u003eoptionNames\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAPI level 2 removed the requirement for a \u003ccode\u003esessionId\u003c/code\u003e, obtained from \u003ccode\u003ecamera.startSession\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eResults are provided in JSON format as \u003ccode\u003e<key, value>\u003c/code\u003e pairs within the \u003ccode\u003eoptions\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003ePossible errors include \u003ccode\u003emissingParameter\u003c/code\u003e if required parameters are absent and \u003ccode\u003einvalidParameterName\u003c/code\u003e for unsupported option names.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003einvalidParameterValue\u003c/code\u003e error was deprecated in API level 2 and replaced with \u003ccode\u003einvalidParameterName\u003c/code\u003e for invalid option names.\u003c/p\u003e\n"]]],["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"],null,["# camera.getOptions\n\nReturns current settings for requested properties. **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- **optionNames:** A String Array of property names to return.\n\nResults\n-------\n\n- **options:** JSON `\u003ckey, value\u003e` pairs of the requested properties. 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\nErrors\n------\n\n- **missingParameter:** One or more required parameters is missing; for example, `optionNames` is not specified.\n- **invalidParameterName:** One or more input parameter name 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:** Input parameter names are recognized, but one or more values are invalid; for example, the `sessionId` doesn't exist, is inactive, or its data type is incorrect. **This error code was deprecated in\n API level 2** since when any option name is invalid, `invalidParameterName` should be returned.\n\n| Command I/O ----------- ||\n|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| **Command Input (API level 1)** | ```text { \"parameters\": { \"sessionId\": \"12ABC3\", \"optionNames\": [ \"iso\", \"isoSupport\" ] } } ``` |\n| **Command Output (API level 1)** | ```text { \"results\": { \"options\": { \"iso\": 200, \"isoSupport\": [100, 200, 400, 800, 1600] } } } ``` |\n| **Command Output (Error) (API level 1)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter optionNames contains unrecognized option XYZ.\" } } ``` |\n| **Command Input (API level 2)** | ```text { \"parameters\": { \"optionNames\": [ \"iso\", \"isoSupport\" ] } } ``` |\n| **Command Output (API level 2)** | ```text { \"results\": { \"options\": { \"iso\": 200, \"isoSupport\": [100, 200, 400, 800, 1600] } } } ``` |\n| **Command Output (Error) (API level 2)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter optionNames contains unrecognized option XYZ.\" } } ``` |"]]