รีเซ็ตกล้อง
ตั้งค่าตัวเลือกทั้งหมดกลับไปเป็นค่าเริ่มต้น ไม่ควรตั้งสมมติฐาน
เกี่ยวกับสถานะของกล้องเมื่อเปิดเครื่อง เช่น ไม่ควร
ให้สันนิษฐานว่ากล้องเปิดอยู่ทุกครั้งตามตัวเลือกเริ่มต้น
เพิ่มคำสั่งนี้ใน API ระดับ 2
พารามิเตอร์
- คำสั่งนี้ไม่มีพารามิเตอร์ในเนื้อหาคำขอ
ผลลัพธ์
- คำสั่งนี้ไม่แสดงผลลัพธ์ในเนื้อหาการตอบกลับ
ข้อผิดพลาด
- invalidParametersName: ระบบไม่รู้จักชื่อพารามิเตอร์อินพุต
Command I/O |
อินพุตคำสั่ง |
none |
เอาต์พุตคำสั่ง |
none |
เอาต์พุตคำสั่ง (ข้อผิดพลาด) |
{ "error": { "code": "invalidParameterName", "message": "parameter XYZ is unrecognized." } } |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]