|
[BUG]
lightSensitive模块检查光感度,在ios系统返回来的参数有问
[复制链接]
lightSensitive = api.require('lightSensitive');
lightSensitive.start(function(ret) {
console.log(JSON.stringify(ret));
if (api.systemType=="android") {
fnSetBrightne(ret.light);
} else if(api.systemType=="ios") {
if (ret.light<=0) {
console.log(120+(ret.light*18));
fnSetBrightne(120+(ret.light*18));
}else {
console.log(ret.light*18);
fnSetBrightne(ret.light*18);
}
}
});
lightSensitive 在ios系统返回来的参数-8到8之间跳动
|
|