New! GraphQL.NET Cookbook by Senthil Kumar Balu

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());
Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.