Code example for Sensor

Methods: getMaximumRange

0
 
        } 
 
        @Override 
        public void onAccuracyChanged(Sensor sensor, int i) {
            maxLevel = (long) sensor.getMaximumRange();
            lightLevel.setMax(maxLevel.intValue());
        } 
    } 
 
} 
 
Experience pair programming with AI  Get Codota for Java