Share via


CaptureRequest.Key(String, Class) Constructor

Definition

Construct a new Key with a given name and type.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;)V", "", ApiSince=29)]
public Key (string name, Java.Lang.Class type);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;)V", "", ApiSince=29)>]
new Android.Hardware.Camera2.CaptureRequest.Key : string * Java.Lang.Class -> Android.Hardware.Camera2.CaptureRequest.Key

Parameters

name
String
type
Class
Attributes

Remarks

Construct a new Key with a given name and type.

Normally, applications should use the existing Key definitions in CaptureRequest, and not need to construct their own Key objects. However, they may be useful for testing purposes and for defining custom capture request fields.

Java documentation for android.hardware.camera2.CaptureRequest.Key.CaptureRequest$Key(java.lang.String, java.lang.Class<T>).

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.

Applies to