Språk

CaptureRequest Class

Definition

An immutable package of settings and outputs needed to capture a single image from the camera device.

[Android.Runtime.Register("android/hardware/camera2/CaptureRequest", DoNotGenerateAcw=true)]
public sealed class CaptureRequest : Android.Hardware.Camera2.CameraMetadata, Android.OS.IParcelable, IDisposable
[<Android.Runtime.Register("android/hardware/camera2/CaptureRequest", DoNotGenerateAcw=true)>]
type CaptureRequest = class
    inherit CameraMetadata
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
Attributes
Implements

Remarks

An immutable package of settings and outputs needed to capture a single image from the camera device.

Contains the configuration for the capture hardware (sensor, lens, flash), the processing pipeline, the control algorithms, and the output buffers. Also contains the list of target Surfaces to send image data to for this capture.

CaptureRequests can be created by using a Builder instance, obtained by calling CameraDevice#createCaptureRequest or CameraDevice.CameraDeviceSetup#createCaptureRequest

CaptureRequests are given to CameraCaptureSession#capture or CameraCaptureSession#setRepeatingRequest to capture images from a camera.

Each request can specify a different subset of target Surfaces for the camera to send the captured data to. All the surfaces used in a request must be part of the surface list given to the last call to CameraDevice#createCaptureSession, when the request is submitted to the session.

For example, a request meant for repeating preview might only include the Surface for the preview SurfaceView or SurfaceTexture, while a high-resolution still capture would also include a Surface from a ImageReader configured for high-resolution JPEG images.

A reprocess capture request allows a previously-captured image from the camera device to be sent back to the device for further processing. It can be created with CameraDevice#createReprocessCaptureRequest, and used with a reprocessable capture session created with CameraDevice#createReprocessableCaptureSession.

Java documentation for android.hardware.camera2.CaptureRequest.

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.

Fields

Name Description
AutomotiveLensFacingExteriorFront
Obsolete.

The camera device faces the front of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLensFacingExteriorLeft
Obsolete.

The camera device faces the left side of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLensFacingExteriorOther
Obsolete.

The camera device faces the outside of the vehicle body frame but not exactly one of the exterior sides defined by this enum.

(Inherited from CameraMetadata)
AutomotiveLensFacingExteriorRear
Obsolete.

The camera device faces the rear of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLensFacingExteriorRight
Obsolete.

The camera device faces the right side of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorOther
Obsolete.

The camera device faces the inside of the vehicle body frame but not exactly one of seats described by this enum.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow1Center
Obsolete.

The camera device faces the center seat of the first row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow1Left
Obsolete.

The camera device faces the left side seat of the first row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow1Right
Obsolete.

The camera device faces the right seat of the first row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow2Center
Obsolete.

The camera device faces the center seat of the second row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow2Left
Obsolete.

The camera device faces the left side seat of the second row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow2Right
Obsolete.

The camera device faces the right side seat of the second row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow3Center
Obsolete.

The camera device faces the center seat of the third row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow3Left
Obsolete.

The camera device faces the left side seat of the third row.

(Inherited from CameraMetadata)
AutomotiveLensFacingInteriorSeatRow3Right
Obsolete.

The camera device faces the right seat of the third row.

(Inherited from CameraMetadata)
AutomotiveLocationExteriorFront
Obsolete.

The camera device exists outside of the vehicle body frame and on its front side.

(Inherited from CameraMetadata)
AutomotiveLocationExteriorLeft
Obsolete.

The camera device exists outside and on left side of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLocationExteriorOther
Obsolete.

The camera exists outside of the vehicle body frame but not exactly on one of the exterior locations this enum defines.

(Inherited from CameraMetadata)
AutomotiveLocationExteriorRear
Obsolete.

The camera device exists outside of the vehicle body frame and on its rear side.

(Inherited from CameraMetadata)
AutomotiveLocationExteriorRight
Obsolete.

The camera device exists outside and on right side of the vehicle body frame.

(Inherited from CameraMetadata)
AutomotiveLocationExtraFront
Obsolete.

The camera device exists outside of the extra vehicle's body frame and on its front side.

(Inherited from CameraMetadata)
AutomotiveLocationExtraLeft
Obsolete.

The camera device exists outside and on left side of the extra vehicle body.

(Inherited from CameraMetadata)
AutomotiveLocationExtraOther
Obsolete.

The camera device exists on an extra vehicle, such as the trailer, but not exactly on one of front, rear, left, or right side.

(Inherited from CameraMetadata)
AutomotiveLocationExtraRear
Obsolete.

The camera device exists outside of the extra vehicle's body frame and on its rear side.

(Inherited from CameraMetadata)
AutomotiveLocationExtraRight
Obsolete.

The camera device exists outside and on right side of the extra vehicle body.

(Inherited from CameraMetadata)
AutomotiveLocationInterior
Obsolete.

The camera device exists inside of the vehicle cabin.

(Inherited from CameraMetadata)
ColorCorrectionModeCct
Obsolete.

Use CaptureRequest#COLOR_CORRECTION_COLOR_TEMPERATURE android.colorCorrection.colorTemperature and CaptureRequest#COLOR_CORRECTION_COLOR_TINT android.colorCorrection.colorTint to adjust the white balance based on correlated color temperature.

(Inherited from CameraMetadata)
ControlAeModeOnLowLightBoostBrightnessPriority
Obsolete.

Like 'ON' but applies additional brightness boost in low light scenes.

(Inherited from CameraMetadata)
ControlAePriorityModeOff
Obsolete.

Disable AE priority mode.

(Inherited from CameraMetadata)
ControlAePriorityModeSensorExposureTimePriority
Obsolete.

The camera device's auto-exposure routine is active and prioritizes the application-selected exposure time (CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime).

(Inherited from CameraMetadata)
ControlAePriorityModeSensorSensitivityPriority
Obsolete.

The camera device's auto-exposure routine is active and prioritizes the application-selected ISO (CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity).

(Inherited from CameraMetadata)
ControlAfSceneChangeDetected

Scene change is detected within the AF region(s).

(Inherited from CameraMetadata)
ControlAfSceneChangeNotDetected

Scene change is not detected within the AF region(s).

(Inherited from CameraMetadata)
ControlAutoframingOff
Obsolete.

Disable autoframing.

(Inherited from CameraMetadata)
ControlAutoframingOn
Obsolete.

Enable autoframing to keep people in the frame's field of view.

(Inherited from CameraMetadata)
ControlAutoframingStateConverged
Obsolete.

Auto-framing has reached a stable state (frame/fov is not being adjusted).

(Inherited from CameraMetadata)
ControlAutoframingStateFraming
Obsolete.

Auto-framing is in process - either zooming in, zooming out or pan is taking place.

(Inherited from CameraMetadata)
ControlAutoframingStateInactive
Obsolete.

Auto-framing is inactive.

(Inherited from CameraMetadata)
ControlExtendedSceneModeBokehContinuous
Obsolete.

Bokeh effect must not slow down capture rate relative to sensor raw output, and the effect is applied to all processed streams no larger than the maximum streaming dimension.

(Inherited from CameraMetadata)
ControlExtendedSceneModeBokehStillCapture
Obsolete.

High quality bokeh mode is enabled for all non-raw streams (including YUV, JPEG, and IMPLEMENTATION_DEFINED) when capture intent is STILL_CAPTURE.

(Inherited from CameraMetadata)
ControlExtendedSceneModeDisabled
Obsolete.

Extended scene mode is disabled.

(Inherited from CameraMetadata)
ControlLowLightBoostStateActive
Obsolete.

The AE mode 'ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY' is enabled and applied.

(Inherited from CameraMetadata)
ControlLowLightBoostStateInactive
Obsolete.

The AE mode 'ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY' is enabled but not applied.

(Inherited from CameraMetadata)
ControlModeUseExtendedSceneMode
Obsolete.

Use a specific extended scene mode.

(Inherited from CameraMetadata)
ControlSettingsOverrideOff
Obsolete.

No keys are applied sooner than the other keys when applying CaptureRequest settings to the camera device.

(Inherited from CameraMetadata)
ControlSettingsOverrideZoom
Obsolete.

Zoom related keys are applied sooner than the other keys in the CaptureRequest.

(Inherited from CameraMetadata)
ControlVideoStabilizationModePreviewStabilization
Obsolete.

Preview stabilization, where the preview in addition to all other non-RAW streams are stabilized with the same quality of stabilization, is enabled.

(Inherited from CameraMetadata)
ControlZoomMethodAuto
Obsolete.

The camera device automatically detects whether the application does zoom with CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion or CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio, and in turn decides which metadata tag reflects the effective zoom level.

(Inherited from CameraMetadata)
ControlZoomMethodZoomRatio
Obsolete.

The application intends to control zoom via CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio, and the effective zoom level is reflected by CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio in capture results.

(Inherited from CameraMetadata)
DistortionCorrectionModeFast

Lens distortion correction is applied without reducing frame rate relative to sensor output.

(Inherited from CameraMetadata)
DistortionCorrectionModeHighQuality

High-quality distortion correction is applied, at the cost of possibly reduced frame rate relative to sensor output.

(Inherited from CameraMetadata)
DistortionCorrectionModeOff

No distortion correction is applied.

(Inherited from CameraMetadata)
ExtensionNightModeIndicatorOff
Obsolete.

The camera has detected lighting conditions that are sufficiently bright.

(Inherited from CameraMetadata)
ExtensionNightModeIndicatorOn
Obsolete.

The camera has detected low-light conditions.

(Inherited from CameraMetadata)
ExtensionNightModeIndicatorUnknown
Obsolete.

The camera can't accurately assess the scene's lighting to determine if a Night Mode Camera Extension capture would improve the photo.

(Inherited from CameraMetadata)
InfoDeviceTypeBuiltIn

This camera device is physically a part of this Android device, and the data produced is always within the device's control before it reaches the application requesting it.

(Inherited from CameraMetadata)
InfoDeviceTypeExternal

This camera device is not permanently connected to this Android device.

(Inherited from CameraMetadata)
InfoDeviceTypeUnknown

This camera device has an unknown classification.

(Inherited from CameraMetadata)
InfoDeviceTypeVirtual

This camera device produces purely virtual images, though they may be based on the output of a real hardware camera in some cases.

(Inherited from CameraMetadata)
LensPoseReferenceAutomotive

The value of CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation is relative to the origin of the automotive sensor coordinate system, which is at the center of the rear axle.

(Inherited from CameraMetadata)
LensPoseReferenceGyroscope

The value of CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation is relative to the position of the primary gyroscope of this Android device.

(Inherited from CameraMetadata)
LensPoseReferencePrimaryCamera

The value of CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation is relative to the optical center of the largest camera device facing the same direction as this camera.

(Inherited from CameraMetadata)
LensPoseReferenceUndefined

The camera device cannot represent the values of CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation and CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation accurately enough.

(Inherited from CameraMetadata)
LogicalMultiCameraSensorSyncTypeApproximate

A software mechanism is used to synchronize between the physical cameras.

(Inherited from CameraMetadata)
LogicalMultiCameraSensorSyncTypeCalibrated

The camera device supports frame timestamp synchronization at the hardware level, and the timestamp of a physical stream image accurately reflects its start-of-exposure time.

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesColorSpaceProfiles
Obsolete.

The device supports querying the possible combinations of color spaces, image formats, and dynamic range profiles supported by the camera and requesting a particular color space for a session via android.hardware.camera2.params.SessionConfiguration#setColorSpace .

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesDynamicRangeTenBit
Obsolete.

The device supports one or more 10-bit camera outputs according to the dynamic range profiles specified in android.hardware.camera2.params.DynamicRangeProfiles#getSupportedProfiles .

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesOfflineProcessing
Obsolete.

The camera device supports the OFFLINE_PROCESSING use case.

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesRemosaicReprocessing
Obsolete.

The device supports reprocessing from the RAW_SENSOR format with a bayer pattern given by CameraCharacteristics#SENSOR_INFO_BINNING_FACTOR android.sensor.info.binningFactor (m x n group of pixels with the same color filter) to a remosaiced regular bayer pattern.

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesStreamUseCase
Obsolete.

The camera device supports selecting a per-stream use case via android.hardware.camera2.params.OutputConfiguration#setStreamUseCase so that the device can optimize camera pipeline parameters such as tuning, sensor mode, or ISP settings for a specific user scenario.

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesSystemCamera
Obsolete.

The camera device is only accessible by Android's system components and privileged applications.

(Inherited from CameraMetadata)
RequestAvailableCapabilitiesUltraHighResolutionSensor
Obsolete.

This camera device is capable of producing ultra high resolution images in addition to the image sizes described in the CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesCroppedRaw
Obsolete.

Cropped RAW stream when the client chooses to crop the field of view.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesDefault
Obsolete.

Default stream use case.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesPreview
Obsolete.

Live stream shown to the user.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesPreviewVideoStill
Obsolete.

One single stream used for combined purposes of preview, video, and still capture.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesStillCapture
Obsolete.

Still photo capture.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesVideoCall
Obsolete.

Long-running video call optimized for both power efficiency and video quality.

(Inherited from CameraMetadata)
ScalerAvailableStreamUseCasesVideoRecord
Obsolete.

Recording video clips.

(Inherited from CameraMetadata)
ScalerRotateAndCrop180
Obsolete.

Processed images are rotated by 180 degrees.

(Inherited from CameraMetadata)
ScalerRotateAndCrop270
Obsolete.

Processed images are rotated by 270 degrees clockwise, and then cropped to the original aspect ratio.

(Inherited from CameraMetadata)
ScalerRotateAndCrop90
Obsolete.

Processed images are rotated by 90 degrees clockwise, and then cropped to the original aspect ratio.

(Inherited from CameraMetadata)
ScalerRotateAndCropAuto
Obsolete.

The camera API automatically selects the best concrete value for rotate-and-crop based on the application's support for resizability and the current multi-window mode.

(Inherited from CameraMetadata)
ScalerRotateAndCropNone
Obsolete.

No rotate and crop is applied.

(Inherited from CameraMetadata)
SensorPixelModeDefault
Obsolete.

This is the default sensor pixel mode.

(Inherited from CameraMetadata)
SensorPixelModeMaximumResolution
Obsolete.

In this mode, sensors typically do not bin pixels, as a result can offer larger image sizes.

(Inherited from CameraMetadata)
SensorReadoutTimestampHardware
Obsolete.

This camera device supports the onReadoutStarted callback as well as outputting readout timestamps.

(Inherited from CameraMetadata)
SensorReadoutTimestampNotSupported
Obsolete.

This camera device doesn't support readout timestamp and onReadoutStarted callback.

(Inherited from CameraMetadata)
StatisticsOisDataModeOff

Do not include OIS data in the capture result.

(Inherited from CameraMetadata)
StatisticsOisDataModeOn

Include OIS data in the capture result.

(Inherited from CameraMetadata)

Properties

Name Description
BlackLevelLock

A key for the requested black-level compensation lock state.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ColorCorrectionAberrationMode

A key for the requested chromatic aberration correction mode.

ColorCorrectionColorTemperature

A key for the requested color temperature in kelvin for color-temperature mode.

ColorCorrectionColorTint

A key for the requested color tint for color-temperature mode.

ColorCorrectionGains

A key for the requested Bayer raw color-channel gains for white balance.

ColorCorrectionMode

A key for the requested mode for converting sensor color to linear sRGB.

ColorCorrectionTransform

A key for the requested color transform matrix from sensor RGB to linear sRGB.

ControlAeAntibandingMode

A key for the requested auto-exposure antibanding mode.

ControlAeExposureCompensation

A key for the requested auto-exposure target brightness adjustment.

ControlAeLock

A key for requesting whether auto-exposure (AE) is locked to its latest calculated values.

ControlAeMode

A key for the requested auto-exposure mode.

ControlAePrecaptureTrigger

A key for the requested auto-exposure precapture trigger.

ControlAePriorityMode

A key for the requested auto-exposure priority mode.

ControlAeRegions

A key for the list of metering areas to use for auto-exposure adjustment.

ControlAeTargetFpsRange

A key for the requested auto-exposure target frame-rate range.

ControlAfMode

A key for the requested autofocus mode.

ControlAfRegions

A key for the list of metering areas to use for auto-focus.

ControlAfTrigger

A key for the requested autofocus trigger.

ControlAutoframing

A key for the requested auto-framing mode.

ControlAwbLock

A key for requesting whether auto-white balance (AWB) is locked to its latest calculated values.

ControlAwbMode

A key for the requested auto-white balance mode.

ControlAwbRegions

A key for the list of metering areas to use for auto-white-balance illuminant estimation.

ControlCaptureIntent

A key for the requested capture intent for the auto-exposure, autofocus, and auto-white balance routines.

ControlEffectMode

A key for the requested special color effect.

ControlEnableZsl

A key for the requested zero-shutter-lag setting for still-capture requests.

ControlExtendedSceneMode

A key for the requested extended scene mode.

ControlMode

A key for the overall mode of 3A (auto-exposure, auto-white-balance, auto-focus) control routines.

ControlPostRawSensitivityBoost

A key for the requested sensitivity boost applied after RAW sensor data is captured.

ControlSceneMode

A key for the requested scene mode.

ControlSettingsOverride

A key for the requested settings override.

ControlVideoStabilizationMode

A key for the requested video stabilization mode.

ControlZoomMethod

A key for the requested zoom control method.

ControlZoomRatio

A key for the requested zoom ratio.

Creator

Gets the creator used to read capture requests from parcels.

DistortionCorrectionMode

A key for the requested lens distortion correction mode.

EdgeMode

A key for the requested edge enhancement mode.

ExtensionStrength

A key for the requested strength of the camera extension post-processing effect.

FlashMode

The key for the desired mode of the camera device's flash control.

FlashStrengthLevel

A key for the requested manual flash brightness level.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HotPixelMode

A key for the requested hot-pixel correction mode.

IsReprocess

Determine if this is a reprocess capture request.

JniIdentityHashCode

Gets the Java identity hash code stored for this peer.

(Inherited from Object)
JniManagedPeerState

Gets the state flags last assigned by the runtime.

(Inherited from JavaObject)
JniPeerMembers

Gets the JNI metadata used to access members of this Java binding.

JpegGpsLocation

A key for the requested location used for JPEG GPS metadata.

JpegOrientation

A key for the requested JPEG image orientation.

JpegQuality

A key for the requested JPEG image compression quality.

JpegThumbnailQuality

A key for the requested JPEG thumbnail compression quality.

JpegThumbnailSize

A key for the requested JPEG thumbnail resolution.

Keys

Returns a list of the keys contained in this map.

(Inherited from CameraMetadata)
LensAperture

A key for the requested lens aperture size as a ratio of focal length to effective aperture diameter.

LensFilterDensity

A key for the requested lens neutral-density filter setting.

LensFocalLength

A key for the requested lens focal length.

LensFocusDistance

A key for the requested distance from the front of the lens to the plane of sharpest focus.

LensOpticalStabilizationMode

The key for the optical image stabilization mode requested from the camera device.

LogicalMultiCameraAdditionalResults

A key controlling whether additional physical-camera metadata can be returned in capture results.

NoiseReductionMode

A key for the requested noise reduction mode.

PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
ReprocessEffectiveExposureFactor

A key for the requested exposure increase factor applied by the application before reprocessing.

ScalerCropRegion

A key for the requested sensor region to read out.

ScalerRotateAndCrop

A key for the requested rotation-and-crop mode for processed outputs.

SensorExposureTime

A key for the requested duration each pixel is exposed to light.

SensorFrameDuration

A key for the requested duration, in nanoseconds, between the start of one frame readout and the next.

SensorPixelMode

A key for the requested sensor pixel mode, either default or maximum resolution.

SensorSensitivity

A key for the requested amount of gain applied to sensor data before processing.

SensorTestPatternData

A key for the requested pixel [R, G_even, G_odd, B] used for the test pattern in SolidColor mode.

SensorTestPatternMode

A key for the requested sensor test-pattern mode. When enabled, the sensor sends a test pattern instead of a real exposure.

ShadingMode

A key for the requested lens shading correction quality.

StatisticsFaceDetectMode

A key for the requested face detector operating mode.

StatisticsHotPixelMapMode

A key for the requested hot-pixel map generation mode.

StatisticsLensShadingMapMode

A key for the requested lens shading map output mode.

StatisticsOisDataMode

A key for the requested optical stabilization position-information output mode.

Tag

Retrieve the tag for this request, if any.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from CameraMetadata)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from CameraMetadata)
TonemapCurve

A key for the requested tonemapping curve for contrast-curve mode.

TonemapGamma

A key for the requested tonemapping gamma value.

TonemapMode

A key for the requested tonemapping mode.

TonemapPresetCurve

A key for the requested preset tonemapping curve.

Methods

Name Description
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

Delegates construction of this peer to the runtime's value manager.

(Inherited from JavaObject)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose()

Releases the JNI reference held by this managed peer and unregisters the peer from the interop runtime.

(Inherited from Object)
Dispose(Boolean)

Provides a disposal hook for subclasses. This implementation performs no action.

(Inherited from Object)
DisposeUnlessReferenced()

Asks the value manager to dispose this peer unless its mapping retains this same managed instance.

(Inherited from JavaObject)
Equals(Object)

Tests whether another managed peer refers to the same Java object.

(Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Get(CaptureRequest+Key)

Get a capture request field value.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

Stores a reference value in the control block without creating a JNI reference copy.

(Inherited from JavaObject)
ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed()

Marks this peer as disposed and calls Dispose with disposing set to true.

(Inherited from JavaObject)
IJavaPeerable.Finalized()

Marks this peer as disposed and calls Dispose with disposing set to false.

(Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Gets the native control-block pointer used by this peer.

(Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Stores the identity hash code supplied by the runtime.

(Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Replaces the stored managed peer state flags.

(Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Updates the peer reference and releases a disposed peer's control block when the reference is invalid.

(Inherited from JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Removes this instance from the runtime's Java object lookup.

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to