1

I have a problem. I m a new windows phone 10 developer and i have a problem.

How can i turn on flashlight on a Lumia 930 ? I can t find any answer on internet.

Thx alot, Regards

BadFeelingAboutThis
  • 14,445
  • 2
  • 33
  • 40

1 Answers1

2

The Windows.Devices.Lights.Lamp namespace is where you need to look, there's an example of Lamp usage in Windows 10 https://github.com/Microsoft/Windows-universal-samples/tree/master/lamp that might be of help. Here's a small example based on this as an alternative to the link:

using (var lamp = await Lamp.GetDefaultAsync()) 
{ 
    lamp.BrightnessLevel = 1.0F;
    lamp.IsEnabled = true;
}
RoguePlanetoid
  • 4,516
  • 7
  • 47
  • 64