AmbientLightManager

环境光照度管理器:主要通过传感器来监听光照强度变化

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun onAccuracyChanged(sensor: Sensor, accuracy: Int)
Link copied to clipboard
open fun onSensorChanged(sensorEvent: SensorEvent)
Link copied to clipboard
open fun register()
注册
Link copied to clipboard
open fun setBrightLightLux(lightLux: Float)
设置光照强度足够明亮的阈值(单位:lux)
Link copied to clipboard
open fun setDarkLightLux(lightLux: Float)
设置光照强度足够暗的阈值(单位:lux)
Link copied to clipboard
设置光照传感器监听器,只有在 isLightSensorEnabledtrue 才有效
Link copied to clipboard
open fun unregister()
注销