public class BamCustomScanPresenter
extends java.lang.Object
Constructor and Description |
---|
BamCustomScanPresenter(InlineScanViewController inlineScanViewController,
BamScanPresenter scanPresenter) |
Modifier and Type | Method and Description |
---|---|
void |
clearSDK()
Releases all allocated resources (Camera, ...).
|
boolean |
hasFlash() |
boolean |
hasMultipleCameras() |
boolean |
isCameraFrontFacing() |
boolean |
isFlashOn() |
void |
onActivityPause()
Must be called when the hosting activity/fragments onPause method is called
|
void |
retryScan()
Retry scan should be called if an error occured and retry is possible
|
void |
stopScan()
Scan can be stopped manually, retryScan is possible after this method is called.
|
void |
switchCamera()
switches between the cameras
|
void |
toggleFlash()
Toggles the flash, if one is available
|
public BamCustomScanPresenter(InlineScanViewController inlineScanViewController, BamScanPresenter scanPresenter)
public void onActivityPause()
public void retryScan() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if method is called although retry is not possiblepublic void stopScan()
public void clearSDK()
public boolean hasFlash()
public boolean isFlashOn()
public void toggleFlash()
public boolean hasMultipleCameras()
public boolean isCameraFrontFacing()
public void switchCamera()
© Jumio Corp. 268 Lambert Avenue, Palo Alto, CA 94306
The source code and software available on this website (“Software”) is provided by Jumio Corp. or its affiliated group
companies (“Jumio”) "as is” and any express or implied warranties, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose are disclaimed. In no event shall Jumio be liable for any direct, indirect,
incidental, special, exemplary, or consequential damages (including but not limited to procurement of substitute goods or
services, loss of use, data, profits, or business interruption) however caused and on any theory of liability, whether in contract,
strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Software, even if advised of the
possibility of such damage. In any case, your use of this Software is subject to the terms and conditions that apply to your
contractual relationship with Jumio. As regards Jumio’s privacy practices, please see our privacy notice available here: Privacy Policy.