Package 

Interface AmbientLightManager.OnLightSensorEventListener

    • Method Summary

      Modifier and Type Method Description
      void onSensorChanged(float lightLux)
      abstract void onSensorChanged(boolean dark, float lightLux) 传感器改变事件
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSensorChanged

         void onSensorChanged(float lightLux)
        Parameters:
        lightLux - 当前检测到的光照强度值
      • onSensorChanged

         abstract void onSensorChanged(boolean dark, float lightLux)

        传感器改变事件

        Parameters:
        dark - 是否太暗了,当检测到的光照强度值小于darkLightLux时,为{@code true}
        lightLux - 当前检测到的光照强度值