Resource Base
This page is for HardwareUtil
page. HardwareUtil
parameters are static values that illustrate device level.
Attribute Name | Value |
---|---|
DEVICEINFO_UNKNOWN |
-1 |
DEVICE_LEVEL_HIGH |
2 |
DEVICE_LEVEL_MID |
1 |
DEVICE_LEVEL_LOW |
0 |
DEVICE_LEVEL_UNKNOWN |
-2 |
getDeviceLevel
Java:
int level;
level = mCamera.getDeviceLevel();
if (level == HardwareUtil.DEVICE_LEVEL_LOW){
mCamera.enableFrameFilter(true);
mCamera.enableDCEAutoFocus(true);
}
Kotlin:
var level: Int? = mCameraEnhancer!!.deviceLevel
if(level == HardwareUtil.DEVICE_LEVEL_LOW){
mCameraEnhancer!!.enableFrameFilter(true)
mCameraEnhancer!!.enableDCEAutoFocus(true)
}
version 1.0