decibel

getDecibel

获取分贝值(dB)的模块。

getDecibel

获取周围环境的分贝值(dB)。

repeat:

  • 类型:布尔

interval:

  • 类型:数字
  • 描述:(选填)repeat为true才有效,返回的时间间隔,单位毫秒ms

callback(ret)

ret:

  • 类型:JSON对象
  • 内部字段:

可用性

stop

停止返回分贝值,只有设repeat为true,才有必要调这个停止。

stop()

可用性

Android系统、iOS系统