我有个问题。我是一个新的windows 10开发者,我有一个问题。
如何打开Lumia 930上的手电筒?我在网上找不到任何答案。
特克斯,你好
发布于 2015-06-22 12:18:08
Windows.Devices.Lights.Lamp名称空间是您需要查看的地方,在Windows 10 https://github.com/Microsoft/Windows-universal-samples/tree/master/lamp中有一个使用Lamp的示例可能会有所帮助。下面是一个基于此的小示例,作为链接的替代方案:
using (var lamp = await Lamp.GetDefaultAsync())
{
lamp.BrightnessLevel = 1.0F;
lamp.IsEnabled = true;
}https://stackoverflow.com/questions/30978275
复制相似问题