Android.Media.CamcorderProfile.HasProfile Method
Returns true if camcorder profile exists for the first back-facing camera at the given quality level.

Syntax

[Android.Runtime.Register("hasProfile", "(I)Z", "")]
public static bool HasProfile ([Android.Runtime.GeneratedEnum] CamcorderQuality quality)

See Also

Android.Hardware.Camera2.CameraManager
Android.Hardware.Camera2.CameraCharacteristics

Parameters

quality
the target quality level for the camcorder profile

Returns

Documentation for this section has not yet been entered.

Remarks

Returns true if camcorder profile exists for the first back-facing camera at the given quality level.

When using the Camera 2 API in LEGACY mode (i.e. when Android.Hardware.Camera2.CameraCharacteristics.InfoSupportedHardwareLevel is set to Android.Hardware.Camera2.CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY), CamcorderProfile.HasProfile(CamcorderQuality) may return true for unsupported resolutions. To ensure a a given resolution is supported in LEGACY mode, the configuration given in Android.Hardware.Camera2.CameraCharacteristics.ScalerStreamConfigurationMap must contain the the resolution in the supported output sizes. The recommended way to check this is with Android.Hardware.Camera2.Params.StreamConfigurationMap.getOutputSizes(java.lang.Class<T>) with the class of the desired recording endpoint, and check that the desired resolution is contained in the list returned.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11