Share via


CaptureRequest.Builder.SetTag(Object) Method

Definition

Set a tag for this request.

[Android.Runtime.Register("setTag", "(Ljava/lang/Object;)V", "")]
public void SetTag (Java.Lang.Object? tag);
[<Android.Runtime.Register("setTag", "(Ljava/lang/Object;)V", "")>]
member this.SetTag : Java.Lang.Object -> unit

Parameters

tag
Object

an arbitrary Object to store with this request

Attributes

Remarks

Set a tag for this request.

This tag is not used for anything by the camera device, but can be used by an application to easily identify a CaptureRequest when it is returned by CameraCaptureSession.CaptureCallback#onCaptureCompleted CaptureCallback.onCaptureCompleted.

If the application overrides the tag object's Object#toString function, the returned string must not contain personal identifiable information.

Java documentation for android.hardware.camera2.CaptureRequest.Builder.setTag(java.lang.Object).

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