kamera.reset,
Wszystkie opcje przywracają wartości domyślne. Nie należy przyjmować żadnych założeń
o stanie kamery, gdy jest włączona. Na przykład nie powinna.
zakłada się, że kamera jest włączana za każdym razem z opcjami domyślnymi.
To polecenie zostało dodane na poziomie interfejsu API 2.
Parametry
- To polecenie nie ma parametru w treści żądania.
Wyniki
- To polecenie nie zwraca żadnych wyników w treści odpowiedzi.
Błędy
- invalidParametrName:nie udało się rozpoznać nazwy parametru wejściowego.
Polecenie I/O |
Dane wejściowe polecenia |
none |
Dane wyjściowe polecenia |
none |
Dane wyjściowe polecenia (błąd) |
{ "error": { "code": "invalidParameterName", "message": "parameter XYZ is unrecognized." } } |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]