מצלמה.reset
החזרת כל האפשרויות לערכי ברירת המחדל. אין להניח הנחות
על מצב המצלמה כשהיא מופעלת, למשל, אסור
ההנחה היא שמצלמה מופעלת בכל פעם עם אפשרויות ברירת מחדל.
הפקודה הזו נוספה ברמת API 2.
פרמטרים
- פקודה זו לא מכילה פרמטר בגוף הבקשה.
תוצאות
- הפקודה הזו לא מחזירה תוצאה בגוף התשובה.
שגיאות
- INVALIDParameterName: השם של פרמטר הקלט לא מזוהה.
Command I/O |
קלט פקודה |
none |
פלט הפקודה |
none |
פלט הפקודה (שגיאה) |
{ "error": { "code": "invalidParameterName", "message": "parameter XYZ is unrecognized." } } |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["Resets all camera options to their original default settings."],["Camera state on power-up is unpredictable and not guaranteed to have default options."],["Introduced in API level 2, this command neither accepts input parameters nor provides output results in its request/response body."],["An \"invalidParameterName\" error is returned if an unrecognized parameter is included in the request."]]],["This command resets all camera options to their default values, ensuring no prior state assumptions are made. Introduced in API level 2, it requires no parameters in the request and returns no result in the response. The only potential error is \"invalidParameterName,\" triggered if an unrecognized parameter is provided, even though there should be none. Command input and output is empty, with the error output providing details.\n"]]