HomeWindowsDetecting if the Windows Phone has Front Facing Camera

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

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...