camera.updateSession
세션 제한 시간을 새로고침합니다. 세션이 자동으로 업데이트되는
카메라와의 상호작용 예를 들어
10분의 시간제한이
takePicture
명령어가 실행됩니다. 이 명령어는 지원 중단됨
API 수준 2에서 지원됩니다
매개변수
- sessionId: 문자열 유형의 고유한 세션 식별자입니다.
- timeout: (선택사항) 요청된 세션 제한 시간(초)입니다.
생략된 경우 (HTTP 요청에 본문이 없음) 카메라는 적절한
시간 초과
결과
- sessionId: 전달된 확인된 세션 식별자 문자열입니다.
추가합니다
- timeout:확인된 세션 제한 시간(초)입니다.
오류
- missingParameter:
sessionId
가 누락되었습니다. 예를 들어
sessionId
가 지정되지 않았습니다.
- invalidParameterName: 하나 이상의 입력 매개변수 이름이 있습니다.
인식할 수 없습니다.
- invalidParameterValue: 입력 매개변수 이름이 인식됩니다.
하나 이상의 전달된 값이 잘못되었습니다. 예를 들어
sessionId
존재하지 않거나 더 이상 활성 상태가 아니거나 데이터 유형이 올바르지 않습니다.
timeout
은(는) 잘못된 데이터 유형입니다.
명령어 I/O |
명령어 입력 |
{ "parameters": { "sessionId": "12ABC3", "timeout": 50 } } |
명령어 결과 |
{ "results": { "sessionId": "12ABC3", "timeout": 50 } } |
명령어 출력 (오류) |
{ "error": { "code": "missingParameter", "message": "Parameter sessionId is missing." } } |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[null,null,["최종 업데이트: 2024-08-21(UTC)"],[[["Refreshes the camera session timeout upon interaction and resets it to the initially specified duration."],["Requires a unique session identifier (`sessionId`) and optionally allows specifying a desired timeout duration in seconds."],["Returns the confirmed session identifier and timeout or reports errors like missing or invalid parameters."],["This command is deprecated and was replaced with newer methods in API level 2."]]],["The core function is to refresh a camera session's timeout. It utilizes a `sessionId` string for identification. An optional `timeout` parameter (in seconds) can be set; otherwise, the camera determines a reasonable duration. Successful execution returns the confirmed `sessionId` and `timeout`. Errors occur with missing or invalid `sessionId`, or invalid parameter names/values. This command has been deprecated from API level 2.\n"]]