public static final class SCaptureRequest.Key<T> extends Object
Key
is used to do capture request field lookups with
SCaptureResult.get(com.samsung.android.sdk.camera.SCaptureResult.Key<T>)
or to set fields with
SCaptureRequest.Builder.set(SCaptureRequest.Key, java.lang.Object)
.
For example, to set the crop rectangle for the next capture:
Rect cropRectangle = new Rect(0, 0, 640, 480);
captureRequestBuilder.set(SCALER_CROP_REGION, cropRectangle);
To enumerate over all possible keys for SCaptureResult
, see
SCameraCharacteristics.getAvailableCaptureResultKeys()
.
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return a camelCase, period separated name formatted like:
"root.section[.subsections].name" . |
public String getName()
"root.section[.subsections].name"
.
Built-in keys exposed by the Android SDK are always prefixed with "android."
;
keys that are device/platform-specific are prefixed with "com."
.
For example, SCameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP
would
have a name of "android.scaler.streamConfigurationMap"
; whereas a device
specific key might look like "com.google.nexus.data.private"
.
Copyright © Samsung Electronics, Co., Ltd. All rights reserved.