Android.Hardware.Camera2.Params.StreamConfigurationMap.IsOutputSupportedFor Method
Determine whether or not the surface in its current state is suitable to be included in a Android.Hardware.Camera2.CameraDevice.createCaptureSession(java.util.List<android.view.Surface>, android.hardware.camera2.CameraCaptureSession.StateCallback, android.os.Handler) as an output.

Syntax

[Android.Runtime.Register("isOutputSupportedFor", "(Landroid/view/Surface;)Z", "")]
public bool IsOutputSupportedFor (Android.Views.Surface surface)

Parameters

surface
a non-nullAndroid.Views.Surface object reference

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif surface was null

Remarks

Determine whether or not the surface in its current state is suitable to be included in a Android.Hardware.Camera2.CameraDevice.createCaptureSession(java.util.List<android.view.Surface>, android.hardware.camera2.CameraCaptureSession.StateCallback, android.os.Handler) as an output.

Not all surfaces are usable with the Android.Hardware.Camera2.CameraDevice, and not all configurations of that surface are compatible. Some classes that provide the surface are compatible with the Android.Hardware.Camera2.CameraDevice in general (see StreamConfigurationMap.isOutputSupportedFor(java.lang.Class<T>), but it is the caller's responsibility to put the surface into a state that will be compatible with the Android.Hardware.Camera2.CameraDevice.

Reasons for a surface being specifically incompatible might be:

This is not an exhaustive list; see the particular class's documentation for further possible reasons of incompatibility.

[Android Documentation]

Requirements

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