Trả về chế độ cài đặt hiện tại cho các tài sản được yêu cầu. Lệnh này đã được sửa đổi trong API cấp 2.
Tham số
sessionId: Giá trị nhận dạng phiên duy nhất của loại chuỗi đã nhận được
bằng lệnh camera.startSession.
Trường này không còn được dùng trong API cấp 2.
optionNames: Một Mảng chuỗi gồm các tên thuộc tính cần trả về.
Kết quả
options:Cặp JSON <key, value> của thuộc tính được yêu cầu.
Giá trị có thể thuộc bất kỳ loại nào sau đây: String, String Array, Number,
Number Array, Boolean, Object, Object Array. Xem
Tuỳ chọn.
Lỗi
ThiếuTham số: Thiếu một hoặc nhiều tham số bắt buộc;
ví dụ: optionNames không được chỉ định.
không hợp lệTham số: Một hoặc nhiều tên hoặc lựa chọn tham số đầu vào
tên không xác định hoặc không được hỗ trợ, ví dụ: mã này sẽ được trả về nếu một
tuỳ chọn (ví dụ: captureInterval) từ API cấp 2 được sử dụng khi clientVersion
trong Options là 1.
invalidParameterValue: Hệ thống nhận dạng được tên tham số đầu vào, nhưng
một hoặc nhiều giá trị không hợp lệ; ví dụ: sessionId không tồn tại,
không hoạt động hoặc loại dữ liệu không chính xác. Mã lỗi này không còn được dùng trong
API cấp 2 kể từ khi tên tuỳ chọn bất kỳ không hợp lệ, invalidParameterName
sẽ được trả về.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-21 UTC."],[[["This command returns current camera settings for the requested properties, specified in `optionNames`."],["API level 2 removed the requirement for a `sessionId`, obtained from `camera.startSession`."],["Results are provided in JSON format as `\u003ckey, value\u003e` pairs within the `options` field."],["Possible errors include `missingParameter` if required parameters are absent and `invalidParameterName` for unsupported option names."],["`invalidParameterValue` error was deprecated in API level 2 and replaced with `invalidParameterName` for invalid option names."]]],["This command retrieves current settings for specified properties. It requires an array of `optionNames` to be provided. It returns a JSON object containing `\u003ckey, value\u003e` pairs of the requested properties within the `options` field. API level 1 required a `sessionId` obtained from `camera.startSession`, but this is deprecated in API level 2. Errors include `missingParameter`, `invalidParameterName` for unrecognized parameters, and `invalidParameterValue` for incorrect values in API 1.\n"]]