public class TorchController
extends java.lang.Object
| Constructor and Description |
|---|
TorchController() |
| Modifier and Type | Method and Description |
|---|---|
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).
|
void |
setTorchStateListener(OverlayTorchStateListener torchStateListener) |
void |
setup(android.widget.ImageView torchButton,
RecognizerRunnerView recognizerRunnerView) |
void |
setup(android.widget.ImageView torchButton,
RecognizerRunnerView recognizerRunnerView,
android.graphics.drawable.Drawable iconOff,
android.graphics.drawable.Drawable iconOn) |
void |
setup(RecognizerRunnerView recognizerRunnerView) |
void |
toggleTorchState() |
void |
updateTorchState(boolean isTorchEnabled) |
public void setup(@Nullable
RecognizerRunnerView recognizerRunnerView)
public void setup(@Nullable
android.widget.ImageView torchButton,
@Nullable
RecognizerRunnerView recognizerRunnerView)
public void setup(@Nullable
android.widget.ImageView torchButton,
@Nullable
RecognizerRunnerView recognizerRunnerView,
@Nullable
android.graphics.drawable.Drawable iconOff,
@Nullable
android.graphics.drawable.Drawable iconOn)
public void onTorchSupportStatusAvailable()
public void updateTorchState(boolean isTorchEnabled)
public void toggleTorchState()
public void setTorchStateListener(@Nullable
OverlayTorchStateListener torchStateListener)