public final class NetverifyCustomSDKController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
NetverifyCustomSDKController.InternalController |
Constructor and Description |
---|
NetverifyCustomSDKController(android.app.Activity activity,
android.content.Context context,
CredentialsModel credentialsModel,
NetverifyCustomSDKInterface netverifyCustomSDKInterface) |
Modifier and Type | Method and Description |
---|---|
boolean |
consumeIntent(int requestCode,
int resultCode,
android.content.Intent data) |
void |
destroy()
This function needs to be called to release all allocated resources
|
void |
finish()
Finishes the workflow
|
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
|
java.util.List<ScanSide> |
setDocumentConfiguration(NetverifyCountry country,
NVDocumentType documentType,
NVDocumentVariant documentVariant)
Select country and document type which has to be processed.
|
void |
setUserConsented()
This function needs to be called once the user accepted the Jumio privacy policy after
NetverifyCustomSDKInterface.onNetverifyUserConsentRequried(String)
has been called. |
NetverifyCustomScanPresenter |
startScanForPart(ScanSide scanSide,
NetverifyCustomScanView scanView,
NetverifyCustomConfirmationView confirmationView,
NetverifyCustomScanInterface scanViewInterface)
Start the scanning of a document part
|
public NetverifyCustomSDKController(android.app.Activity activity, android.content.Context context, CredentialsModel credentialsModel, NetverifyCustomSDKInterface netverifyCustomSDKInterface)
public java.util.List<ScanSide> setDocumentConfiguration(NetverifyCountry country, NVDocumentType documentType, NVDocumentVariant documentVariant) throws SDKNotConfiguredException, java.lang.IllegalArgumentException
country
- selected country which has to be choosen from the list in NetverifyCustomSDKInterface.onNetverifyCountriesReceived(HashMap, String)
documentType
- document which has to be scanned - Has to be part of NetverifyCountry.getDocumentTypes()
documentVariant
- variant which has to be scanned - Has to be part of NetverifyCountry.getDocumentVariants(NVDocumentType)
java.lang.IllegalArgumentException
- Country is not part of the returned list from NetverifyCustomSDKInterface.onNetverifyCountriesReceived(HashMap, String)
, document is not part of NetverifyCountry.getDocumentTypes()
or document variant is not part of NetverifyCountry.getDocumentVariants(NVDocumentType)
SDKNotConfiguredException
- this controller is already destroyedpublic void setUserConsented()
NetverifyCustomSDKInterface.onNetverifyUserConsentRequried(String)
has been called.public NetverifyCustomScanPresenter startScanForPart(ScanSide scanSide, NetverifyCustomScanView scanView, NetverifyCustomConfirmationView confirmationView, NetverifyCustomScanInterface scanViewInterface) throws SDKNotConfiguredException, java.lang.IllegalArgumentException
scanSide
- The scan side which has to be part of the list which setDocumentConfiguration(NetverifyCountry, NVDocumentType, NVDocumentVariant)
returnedscanView
- Implementation of NetverifyCustomScanView
confirmationView
- Implementation of NetverifyCustomConfirmationView
scanViewInterface
- Implementation of NetverifyCustomScanInterface
NetverifyCustomScanPresenter
to control the started camera previewjava.lang.IllegalArgumentException
- DocumentPart is not validSDKNotConfiguredException
- Country is not part of the returned list from NetverifyCustomSDKInterface.onNetverifyCountriesReceived(HashMap, String)
, document is not part of NetverifyCountry.getDocumentTypes()
, document variant is not part of NetverifyCountry.getDocumentVariants(NVDocumentType)
, the user consent is missing or this controller is already destroyedpublic void retry() throws SDKNotConfiguredException
SDKNotConfiguredException
- this controller is already destroyedpublic void finish() throws SDKNotConfiguredException
SDKNotConfiguredException
- this controller is already destroyedpublic void pause() throws SDKNotConfiguredException
SDKNotConfiguredException
public void resume() throws SDKNotConfiguredException
SDKNotConfiguredException
public boolean consumeIntent(int requestCode, int resultCode, android.content.Intent data)
public void destroy() throws SDKNotConfiguredException
SDKNotConfiguredException
© 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.