Resource Base
Table of contents

com.dynamsoft.dce.HardwareUtil

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

Device level

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)
}

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 1.0.1
  • Version 1.0
Change +
© 2003–2021 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support