camera.closeSession
中斷用戶端與相機的連線。這個指令已淘汰
在 API 級別 2 中運作
參數
- sessionId:類型字串的不重複工作階段 ID。
結果
錯誤
- missingParameter:缺少
sessionId
。
- INVALIDParameterName:無法辨識輸入參數名稱。
- invalidParameterValue::系統會識別輸入參數名稱,
但值無效;例如,
sessionId
不存在。
已失效,或是資料類型不正確。
指令 I/O |
指令輸入 |
{ "parameters": { "sessionId": "12ABC3" } } |
指令輸出 |
none |
指令輸出 (錯誤) |
{ "error": { "code": "invalidParameterValue", "message": "Parameter sessionId type is incorrect." } } |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[null,null,["上次更新時間: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"]]