跳到主要内容

开打闪光灯(device.turnOnFlash)

函数

device.turnOnFlash()

说明

该函数需要在 2.1.6 版本以上使用

启用设备的 手电筒功能

示例

if not device.isFlashEnabled() then  
print("闪光灯 未启用")
device.turnOnFlash() -- 打开闪光灯
end