跳到主要内容

关闭闪光灯(device.turnOffFlash)

函数

device.turnOffFlash()

说明

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

关闭设备的手电筒

示例

if device.isFlashEnabled() then  
print("闪光灯 已启用 ")
device.turnOffFlash() --关闭闪光灯
end