מצלמה.closeSession
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מנתקים את הלקוח מהמצלמה. הפקודה הזו הוצאה משימוש
ברמת API 2.
פרמטרים
- sessionId: מזהה סשן ייחודי של מחרוזת סוג.
תוצאות
- הפקודה הזו לא מחזירה תוצאה.
שגיאות
- missingParameter:
sessionId
חסר.
- INVALIDParameterName: השם של פרמטר הקלט לא מזוהה.
- invalidParameterValue: השם של פרמטר הקלט מזוהה,
אבל הערך שלו לא חוקי. לדוגמה,
sessionId
לא קיים,
כבר לא פעיל, או שסוג הנתונים שלו שגוי.
Command I/O |
קלט פקודה |
{
"parameters": {
"sessionId": "12ABC3"
}
} |
פלט הפקודה |
none |
פלט הפקודה (שגיאה) |
{
"error": {
"code": "invalidParameterValue",
"message": "Parameter sessionId type is incorrect."
}
} |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["\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.\" } } ``` |"]]