Detecting if the Windows Phone has Front Facing Camera

If you want to programmatically detect if the Windows Phone has the front facing camera , you can easily do it using the Microsoft.Devices.Camera.IsCameraTypeSupported method . The Microsoft.Devices.Camera.IsCameraTypeSupported determines and lets the user know if the specified type of camera is supported on the windows phone device.

Detecting if the Windows Phone has Front Facing Camera

Just pass the CameraType.FrontFacing to the IsCameraTypeSupported method which returns the Boolean value for identifying if the camera is supported .

var result = Microsoft.Devices.Camera.IsCameraTypeSupported(Microsoft.Devices.CameraType.FrontFacing);

MessageBox.Show(result.ToString());

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...