Class TorchController
- java.lang.Object
-
- com.microblink.documentverification.fragment.overlay.components.TorchController
-
public class TorchController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TorchController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonTorchSupportStatusAvailable()This method should be called immediately after the camera preview has been started and torch support status is available (torch is supported by currently opened camera or not).voidsetTorchStateListener(OverlayTorchStateListener torchStateListener)voidsetup(android.widget.ImageView torchButton, RecognizerRunnerView recognizerRunnerView)voidsetup(android.widget.ImageView torchButton, RecognizerRunnerView recognizerRunnerView, android.graphics.drawable.Drawable iconOff, android.graphics.drawable.Drawable iconOn)voidsetup(RecognizerRunnerView recognizerRunnerView)voidtoggleTorchState()voidupdateTorchState(boolean isTorchEnabled)
-
-
-
Method Detail
-
setup
public void setup(@Nullable RecognizerRunnerView recognizerRunnerView)
-
setup
public void setup(@Nullable android.widget.ImageView torchButton, @Nullable RecognizerRunnerView recognizerRunnerView)
-
setup
public void setup(@Nullable android.widget.ImageView torchButton, @Nullable RecognizerRunnerView recognizerRunnerView, @Nullable android.graphics.drawable.Drawable iconOff, @Nullable android.graphics.drawable.Drawable iconOn)
-
onTorchSupportStatusAvailable
public void onTorchSupportStatusAvailable()
This method should be called immediately after the camera preview has been started and torch support status is available (torch is supported by currently opened camera or not).
-
updateTorchState
public void updateTorchState(boolean isTorchEnabled)
-
toggleTorchState
public void toggleTorchState()
-
setTorchStateListener
public void setTorchStateListener(@Nullable OverlayTorchStateListener torchStateListener)
-
-