camera.startSession
정해진 간격 후에 타임아웃되는 세션을 시작합니다. 카메라를
카메라가 켜진 상태로 유지되는지 확인합니다. 참고로
새 세션은 항상 허용되어야 합니다 기존 세션이 있는 경우
새 세션을 시작하기 전에 카메라에 의해 자동으로 닫혀야 합니다.
이 명령어는 API 수준 2에서 지원 중단되었습니다.
매개변수
- timeout: (선택사항) 요청된 세션 제한 시간(초)입니다.
생략된 경우 (HTTP 요청에 본문이 없음) 카메라는 적절한
시간 초과
결과
- sessionId: 문자열 유형의 고유한 세션 식별자입니다.
- timeout:확인된 세션 제한 시간(초)입니다.
오류
- invalidParameterName: 입력 매개변수 이름을 인식할 수 없습니다.
- invalidParameterValue: 입력 매개변수 이름은 인식되지만
전달된 값이 잘못되었습니다. 예를 들어 값이 범위를 벗어났거나 해당 데이터가
유형이 잘못되었습니다.
명령어 I/O |
명령어 입력 |
{ "parameters": { "timeout": 50 } } |
명령어 결과 |
{ "results": { "sessionId": "12ABC3", "timeout": 50 } } |
명령어 출력 (오류) |
{ "error": { "code": "cameraInExclusiveUse", "message": "Camera already in exclusive use, new session can't be started." } } |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[null,null,["최종 업데이트: 2024-08-21(UTC)"],[[["Starts a session that locks the camera to the requesting client and keeps it awake, timing out after a specified or default interval."],["A new session can always be started, automatically closing any existing session."],["This command, deprecated in API level 2, returns a unique session ID and the confirmed timeout duration."],["Possible errors include invalid parameter names or values, or the camera already being in exclusive use."]]],["The core action initiates a timed camera session, locking the camera to the client and ensuring it remains active. A new session is always permitted, automatically ending any existing session. The user can optionally specify a session timeout in seconds; otherwise, the camera sets a default. The output includes a unique session ID and the confirmed timeout. Errors can occur if parameter names or values are invalid. This command has been deprecated after API level 2.\n"]]