camera.closeSession
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
断开客户端与相机的连接。此命令已弃用
在 API 级别 2 中声明。
参数
- sessionId::字符串类型的唯一会话标识符。
结果
错误
- missing 参数:缺少
sessionId
。
- invalidParameterName:输入参数名称无法识别。
- invalidParameterValue::识别输入参数名称,
但其值无效;例如,
sessionId
不存在,
不再有效,或其数据类型不正确。
命令 I/O |
命令输入 |
{
"parameters": {
"sessionId": "12ABC3"
}
} |
命令输出 |
none |
命令输出(错误) |
{
"error": {
"code": "invalidParameterValue",
"message": "Parameter sessionId type is incorrect."
}
} |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["\u003cp\u003eThis command disconnects the client from the camera and was deprecated in API level 2.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires a session ID as input but returns no result upon successful execution.\u003c/p\u003e\n"],["\u003cp\u003ePotential errors include missing or invalid parameters, such as an incorrect session ID or data type.\u003c/p\u003e\n"]]],["The command disconnects a client from a camera, identified by a unique `sessionId` string. This command is deprecated after API level 2. It requires the `sessionId` as input and produces no output upon success. Potential errors include a missing `sessionId`, an unrecognized parameter name, or an invalid `sessionId` value (nonexistent, inactive, or incorrect data type). The command does not return any results.\n"],null,["# camera.closeSession\n\nDisconnects the client from the camera. **This command was deprecated\nin API level 2.**\n\nParameters\n----------\n\n- **sessionId:** Unique session identifier of type string.\n\nResults\n-------\n\n- This command returns no result.\n\nErrors\n------\n\n- **missingParameter:** `sessionId` is missing.\n- **invalidParameterName:** The input parameter name is unrecognized.\n- **invalidParameterValue:** The input parameter name is recognized, but its value is invalid; for example, the `sessionId` doesn't exist, is no longer active, or its data type is incorrect.\n\n| Command I/O ----------- ||\n|----------------------------|---------------------------------------------------------------------------------------------------------------------|\n| **Command Input** | ```text { \"parameters\": { \"sessionId\": \"12ABC3\" } } ``` |\n| **Command Output** | ```text none ``` |\n| **Command Output (Error)** | ```carbon { \"error\": { \"code\": \"invalidParameterValue\", \"message\": \"Parameter sessionId type is incorrect.\" } } ``` |"]]