public final class AuthenticationCustomSDKController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationCustomSDKController.InternalController |
Constructor and Description |
---|
AuthenticationCustomSDKController(android.app.Activity activity,
android.content.Context context,
CredentialsModel credentialsModel,
AuthenticationCustomSDKInterface authenticationCustomSDKInterface) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This function needs to be called to release all allocated resources
|
void |
getHelpAnimation(AuthenticationCustomAnimationView customAnimationView)
Get the help animation for the currently active scan mode.
|
java.lang.String |
getHelpText()
Get the help text.
|
void |
pause()
This function needs to be called in the onPause lifecycle function of the Fragment or Activity
|
void |
resume()
This function needs to be called in the onResume lifecycle function of the Fragment or Activity
|
void |
retry()
Retry in case of an error
|
void |
retryScan()
Restart scan if the scan has been stopped
|
void |
setUserConsented()
This function needs to be called once the user accepted the Jumio privacy policy after
AuthenticationCustomSDKInterface.onAuthenticationUserConsentRequried(String)
has been called. |
void |
startScan(AuthenticationCustomScanView scanView,
AuthenticationCustomScanInterface scanViewInterface)
Start the scanning
|
public AuthenticationCustomSDKController(android.app.Activity activity, android.content.Context context, CredentialsModel credentialsModel, AuthenticationCustomSDKInterface authenticationCustomSDKInterface)
public void startScan(AuthenticationCustomScanView scanView, AuthenticationCustomScanInterface scanViewInterface) throws SDKNotConfiguredException, java.lang.IllegalArgumentException
scanView
- Implementation of AuthenticationCustomScanView
scanViewInterface
- Implementation of AuthenticationCustomScanInterface
java.lang.IllegalArgumentException
- DocumentPart is not validSDKNotConfiguredException
- If the user consent is missing or the controller is already destroyedpublic void setUserConsented()
AuthenticationCustomSDKInterface.onAuthenticationUserConsentRequried(String)
has been called.public void retry() throws SDKNotConfiguredException
SDKNotConfiguredException
- this controller is already destroyedpublic void pause() throws SDKNotConfiguredException
SDKNotConfiguredException
public void resume() throws SDKNotConfiguredException
SDKNotConfiguredException
public void destroy() throws SDKNotConfiguredException
SDKNotConfiguredException
public java.lang.String getHelpText()
AuthenticationCustomScanInterface.onAuthenticationScanCanceled(AuthenticationCancelReason)
or AuthenticationCustomScanInterface.onAuthenticationFaceInLandscape()
is triggered, this function
should be called again to check for a changed help text.public void getHelpAnimation(AuthenticationCustomAnimationView customAnimationView)
AuthenticationCustomScanInterface.onAuthenticationScanCanceled(AuthenticationCancelReason)
is triggered,
this function should be called again to check for a changed help animation.public void retryScan()
© 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.