public static interface BarCodeReader.AutoFocusCallback
Devices that do not support auto-focus will receive a "fake"
callback to this interface. If your application needs auto-focus and
should not be installed on devices without auto-focus, you must
declare that your app uses the
android.hardware.camera.autofocus
feature, in the
<uses-feature>
manifest element.
限定符和类型 | 方法和说明 |
---|---|
void |
onAutoFocus(boolean success,
BarCodeReader reader)
Called when the reader auto focus completes.
|
void onAutoFocus(boolean success, BarCodeReader reader)
success
set to true
.success
- true if focus was successful, false if otherwisereader
- the BarCodeUtils service object