函数:device.betteryCharging 获取设备充电状态

函数名称:获取设备充电状态

函数功能: 用于判断当前设备充电状态

函数方法

flag = device.betteryCharging()

返回值 类型 说明
flag boolean true - 充电中,false - 未充电

函数用例

 flag = device.betteryCharging()
if    flag then
    dialog("充电中",5000)
else
    dialog("未充电",5000)
end

注意事项

  • 目前积木编程函数和触动精灵函数不通用,请仔细查看本手册,此手册中函数仅支持积木编程,不支持触动精灵,同理请勿将触动精灵函数在积木编程运行。
Copyright 北京帮你玩科技有限公司 2022 all right reserved,powered by Gitbook该文章修订时间: 2023-08-09 17:19:31

results matching ""

    No results matching ""