Android.Hardware.Camera2.Params.StreamConfigurationMap.IsOutputSupportedFor Method
Determine whether or not output surfaces with a particular user-defined format can be passed Android.Hardware.Camera2.CameraDevice.createCaptureSession(java.util.List<android.view.Surface>, android.hardware.camera2.CameraCaptureSession.StateCallback, android.os.Handler).

Syntax

[Android.Runtime.Register("isOutputSupportedFor", "(I)Z", "")]
public bool IsOutputSupportedFor (int format)

See Also

Android.Graphics.ImageFormat
Android.Graphics.PixelFormat

Parameters

format
an image format from either Android.Graphics.ImageFormat or Android.Graphics.PixelFormat

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the image format was not a defined named constant from either Android.Graphics.ImageFormat or Android.Graphics.PixelFormat

Remarks

Determine whether or not output surfaces with a particular user-defined format can be passed Android.Hardware.Camera2.CameraDevice.createCaptureSession(java.util.List<android.view.Surface>, android.hardware.camera2.CameraCaptureSession.StateCallback, android.os.Handler).

This method determines that the output format is supported by the camera device; each output surface target may or may not itself support that format. Refer to the class which provides the surface for additional documentation.

Formats for which this returns true are guaranteed to exist in the result returned by StreamConfigurationMap.GetOutputSizes(int).

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2.Params
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0