CaptureRequest.Builder.Set(CaptureRequest+Key, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a capture request field to a value.
[Android.Runtime.Register("set", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public void Set(Android.Hardware.Camera2.CaptureRequest.Key key, Java.Lang.Object? value);
[<Android.Runtime.Register("set", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.Set : Android.Hardware.Camera2.CaptureRequest.Key * Java.Lang.Object -> unit
Parameters
The metadata field to write. This value cannot be null.
- value
- Object
The value to set the field to, which must be of a matching type to the key.
- Attributes
Remarks
Set a capture request field to a value. The field definitions can be found in CaptureRequest.
Setting a field to null will remove that field from the capture request. Unless the field is optional, removing it will likely produce an error from the camera device when the request is submitted.
Android reference for android.hardware.camera2.CaptureRequest.Builder.set.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.