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。"],[[["This command disconnects the client from the camera and was deprecated in API level 2."],["The command requires a session ID as input but returns no result upon successful execution."],["Potential errors include missing or invalid parameters, such as an incorrect session ID or data type."]]],["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"]]