Interface IIncodeWelcome
-
- All Implemented Interfaces:
public interface IIncodeWelcome
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetCommonConfig(CommonConfig commonConfig)abstract UnitsetSdkMode(SdkMode sdkMode)abstract SdkModegetSdkMode()abstract UnitstartOnboarding(Context context, SessionConfig sessionConfig, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)Starts Incode Welcome flow. abstract UnitsetupOnboardingSession(SessionConfig sessionConfig, OnboardingSessionListener onboardingSessionListener)abstract UnitstartOnboardingSection(Context context, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)Starts split-flow onboarding from the first module in flowConfig. abstract UnitstartOnboardingSection(Context context, SessionConfig sessionConfig, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)Starts split-flow onboarding with optional sessionConfig overrides. abstract UnitsyncDelayedOnboardings(SyncDelayedOnboardingListener syncDelayedOnboardingListener)abstract UnitdeleteAllDelayedOnboardings()abstract UnitstartWorkflow(Context context, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)Starts onboarding in workflow mode. abstract UnitstartFaceLogin(Context context, SelfieScan selfieScan, SelfieScanListener selfieScanListener)Starts the face login process. abstract UnitstartFaceLogin(Context context, SessionConfig sessionConfig, SelfieScan selfieScan, SelfieScanListener selfieScanListener)Starts the face login process. abstract UnitstartFlow(Context context, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)Starts or resumes an onboarding session based on the provided session configuration. abstract UnitstartFlow(Context context, SessionConfig sessionConfig, Modules startFromModule, IncodeWelcome.OnboardingListener onboardingListener)Starts or resumes an onboarding session based on the provided session configuration and starting module. abstract UnitstartFlowFromDeeplink(Context context, String deepLink, IncodeWelcome.OnboardingListener onboardingListener)Resumes an onboarding session based on the provided deep link URL. abstract UnitstartFlowFromDeeplink(Context context, String deepLink, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)Resumes an onboarding session based on the provided deep link URL and session configuration. abstract UnitfinishOnboarding(Context context, FinishOnboardingListener finishOnboardingListener)Important: This method needs to be called at the end of the flow, to close the session on server. abstract UnitgetUserScore(IncodeWelcome.IDResultsFetchMode idResultsFetchMode, String interviewId, GetUserScoreListener getUserScoreListener)abstract UnitgetReport(String interviewId, ReportListener reportListener)abstract StringgetInterviewId()abstract StringgetVideoSelfiePath()abstract BooleanisTokenInitialized()abstract UnitfaceMatch(String interviewId, IdCategory idCategory, FaceMatchListener faceMatchListener)abstract UnitfaceMatch(String interviewId, FaceMatch.MatchType matchType, IdCategory idCategory, FaceMatchListener faceMatchListener)abstract Unitgeolocation(Context context, String interviewId, GeolocationListener geolocationListener)abstract UnitprocessId(String interviewId, IdCategory idCategory, IdProcessListener idProcessListener)abstract UnitprocessLaborHistory(String interviewId, String curp, ProcessLaborHistoryListener laborHistoryListener)abstract UnitprocessPaymentProof(String interviewId, ProcessPaymentProofListener processPaymentProofListener)abstract UnitgetPaymentProofInfo(String interviewId, PaymentProofInfoListener paymentProofInfoListener)abstract UnitsetStrings(Locale locale, Map<String, CharSequence> strings)abstract UnitsetStringArray(Locale locale, Map<String, Array<CharSequence>> stringArray)abstract UnitsetQuantityStrings(Locale locale, Map<String, Map<QuantityKeyword, CharSequence>> quantityStrings)abstract UnitprocessCustomWatchlist(String interviewId, ProcessCustomWatchlistListener processCustomWatchlistListener)abstract UnitaddNOM151Archive(String interviewId, AddNOM151ArchiveListener addNOM151ArchiveListener)abstract UnitgetUserOCRData(String token, GetUserOCRDataListener getUserOCRDataListener)abstract UnitaddFace(FaceInfo faceInfo, FaceEventListener faceEventListener)abstract UnitaddFace(FaceInfo faceInfo)abstract UnitremoveFace(String customerUUID, FaceEventListener faceEventListener)abstract UnitremoveFace(String customerUUID)abstract UnitremoveAllFaces(FaceEventListener faceEventListener)abstract UnitsetFaces(List<FaceInfo> faceInfoList, FaceEventListener faceEventListener)abstract UnitsetFaces(List<FaceInfo> faceInfoList)abstract UnitgetFaces(FaceInfoListener faceInfoListener)abstract UnitsyncFaceLoginAttempts(SyncFaceLoginAttemptsListener syncFaceLoginAttemptsListener)abstract UnitprocessAntifraud(String interviewId, AntifraudListener antifraudListener)abstract UnitsetFaceAuthenticationHint(String faceAuthenticationHint)abstract UnitfetchAllFlows(String adminToken, IncodeWelcome.FetchFlowsListener fetchFlowsListener)abstract UnitfetchFlow(String flowId, String token, IncodeWelcome.FetchFlowListener fetchFlowListener)abstract UnitfetchRegions(FetchRegionsListener fetchRegionsListener)abstract UnitdownloadLibraries()abstract BooleanisLibrariesReady()abstract UnitsubscribeForLibrariesReady(FaceRecognitionPrepareListener faceRecognitionReadyListener)-
-
Method Detail
-
setCommonConfig
abstract Unit setCommonConfig(CommonConfig commonConfig)
-
setSdkMode
abstract Unit setSdkMode(SdkMode sdkMode)
-
getSdkMode
abstract SdkMode getSdkMode()
-
startOnboarding
abstract Unit startOnboarding(Context context, SessionConfig sessionConfig, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)
Starts Incode Welcome flow. This is the main entry point for onboarding driven by FlowConfig.
- Parameters:
context- Activity context used to start module screens.sessionConfig- Session setup used to create or resume onboarding.flowConfig- Module sequence and module-level configuration to execute.onboardingListener- Callback for success, error, and cancellation.- Since:
-
setupOnboardingSession
abstract Unit setupOnboardingSession(SessionConfig sessionConfig, OnboardingSessionListener onboardingSessionListener)
-
startOnboardingSection
abstract Unit startOnboardingSection(Context context, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)
Starts split-flow onboarding from the first module in flowConfig. This is the main entry point when using split-flow functionality.
Call finishOnboarding when split-flow execution is complete to close the session on the server.
- Parameters:
context- Activity context used to start module screens.flowConfig- Module sequence and module-level configuration to execute.onboardingListener- Callback for success, error, and cancellation.- Since:
-
startOnboardingSection
abstract Unit startOnboardingSection(Context context, SessionConfig sessionConfig, FlowConfig flowConfig, IncodeWelcome.OnboardingListener onboardingListener)
Starts split-flow onboarding with optional sessionConfig overrides. This is the main entry point when using split-flow functionality.
Call finishOnboarding when split-flow execution is complete to close the session on the server.
- Parameters:
context- Activity context used to start module screens.sessionConfig- Optional split-flow session overrides that are applied to internal configuration before modules start.flowConfig- Module sequence and module-level configuration to execute.onboardingListener- Callback for success, error, and cancellation.
-
syncDelayedOnboardings
abstract Unit syncDelayedOnboardings(SyncDelayedOnboardingListener syncDelayedOnboardingListener)
-
deleteAllDelayedOnboardings
abstract Unit deleteAllDelayedOnboardings()
-
startWorkflow
abstract Unit startWorkflow(Context context, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)
Starts onboarding in workflow mode.
Creates or resumes onboarding based on sessionConfig. If both
configurationIdandinterviewIdare provided, the existing session is resumed. If onlyconfigurationIdis provided, a new session is created. A validexternalTokencan also be used to initialize the session. If startup fails with com.incode.welcome_sdk.commons.exceptions.ModuleConfigurationException, onboardingListener receives it via OnboardingListener.onError.- Parameters:
context- Activity context used to start module screens.sessionConfig- Session setup used to create or resume onboarding.onboardingListener- Callback for success, error, and cancellation.- Since:
-
startFaceLogin
abstract Unit startFaceLogin(Context context, SelfieScan selfieScan, SelfieScanListener selfieScanListener)
Starts the face login process. See the Face Login documentation for more details.
- Parameters:
context- Activity context used to start module screens.selfieScan- SelfieScan module for login.selfieScanListener- Callback for login results.- Since:
-
startFaceLogin
abstract Unit startFaceLogin(Context context, SessionConfig sessionConfig, SelfieScan selfieScan, SelfieScanListener selfieScanListener)
Starts the face login process. See the Face Login documentation for more details. Use this overload when you need to pass face login session settings such as E2EE. This overload was introduced later than the base
startFaceLogin(context, selfieScan, selfieScanListener)API.
-
startFlow
abstract Unit startFlow(Context context, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)
Starts or resumes an onboarding session based on the provided session configuration. If both
configurationIdandinterviewIdare specified in thesessionConfigobject, this method attempts to resume the existing onboarding session identified by theinterviewId. If onlyconfigurationIdis specified in thesessionConfig, a new onboarding session is started. A validexternalTokencan also be used to initialize the session.- Parameters:
context- Activity context used to start module screens.sessionConfig- Session setup used to create or resume onboarding.onboardingListener- Callback for success, error, and cancellation.- Since:
-
startFlow
abstract Unit startFlow(Context context, SessionConfig sessionConfig, Modules startFromModule, IncodeWelcome.OnboardingListener onboardingListener)
Starts or resumes an onboarding session based on the provided session configuration and starting module. If both
configurationIdandinterviewIdare specified in thesessionConfigobject, this method attempts to resume the existing onboarding session identified by theinterviewId. If onlyconfigurationIdis specified in thesessionConfig, a new onboarding session is started. A validexternalTokencan also be used to initialize the session.- Parameters:
context- Activity context used to start module screens.sessionConfig- Session setup used to create or resume onboarding.startFromModule- Starting module for resumed sessions.onboardingListener- Callback for success, error, and cancellation.- Since:
-
startFlowFromDeeplink
abstract Unit startFlowFromDeeplink(Context context, String deepLink, IncodeWelcome.OnboardingListener onboardingListener)
Resumes an onboarding session based on the provided deep link URL. The deep link is used to extract the session configuration settings, including the interview ID, configuration ID, and starting module. Example of a deep link URL: https://example.com/clientid/flow/abc123?utm_source=finish&interviewId=xyz456&module=ID In this example, the configuration ID is 'abc123', the interview ID is 'xyz456', and the starting module is 'ID'. If the module name from the deep link cannot be resolved, onboardingListener receives an IncodeGenericError.
- Parameters:
context- Activity context used to start module screens.deepLink- Deep link associated with the onboarding session.onboardingListener- Callback for success, error, and cancellation.- Since:
-
startFlowFromDeeplink
abstract Unit startFlowFromDeeplink(Context context, String deepLink, SessionConfig sessionConfig, IncodeWelcome.OnboardingListener onboardingListener)
Resumes an onboarding session based on the provided deep link URL and session configuration. The deep link is used to extract the session configuration settings, including the interview ID, configuration ID, and starting module. If the
sessionConfigparameter contains theconfigurationIdandinterviewId, the values extracted from the deep link will override the corresponding values in the session configuration. Example of a deep link URL: https://example.com/clientid/flow/abc123?utm_source=finish&interviewId=xyz456&module=ID In this example, the configuration ID is 'abc123', the interview ID is 'xyz456', and the starting module is 'ID'. If the module name from the deep link cannot be resolved, onboardingListener receives an IncodeGenericError.- Parameters:
context- Activity context used to start module screens.deepLink- Deep link associated with the onboarding session.sessionConfig- Session configuration merged with deep-link values.onboardingListener- Callback for success, error, and cancellation.- Since:
-
finishOnboarding
abstract Unit finishOnboarding(Context context, FinishOnboardingListener finishOnboardingListener)
Important: This method needs to be called at the end of the flow, to close the session on server.
If you are using individual steps in the SDK or
startOnboardingSection(), you need to call this method when you're done. If you are usingCONFERENCEorRESULTSmodules, callfinishOnboarding()first.If you are using startOnboarding, this method is called automatically, and you do not have to do anything.
- Parameters:
context- Activity context.finishOnboardingListener- Callback for completion (onOnboardingFinished()), error, and cancellation.- Since:
-
getUserScore
abstract Unit getUserScore(IncodeWelcome.IDResultsFetchMode idResultsFetchMode, String interviewId, GetUserScoreListener getUserScoreListener)
-
getReport
abstract Unit getReport(String interviewId, ReportListener reportListener)
-
getInterviewId
abstract String getInterviewId()
-
getVideoSelfiePath
abstract String getVideoSelfiePath()
-
isTokenInitialized
abstract Boolean isTokenInitialized()
-
faceMatch
abstract Unit faceMatch(String interviewId, IdCategory idCategory, FaceMatchListener faceMatchListener)
-
faceMatch
abstract Unit faceMatch(String interviewId, FaceMatch.MatchType matchType, IdCategory idCategory, FaceMatchListener faceMatchListener)
-
geolocation
abstract Unit geolocation(Context context, String interviewId, GeolocationListener geolocationListener)
-
processId
abstract Unit processId(String interviewId, IdCategory idCategory, IdProcessListener idProcessListener)
-
processLaborHistory
abstract Unit processLaborHistory(String interviewId, String curp, ProcessLaborHistoryListener laborHistoryListener)
-
processPaymentProof
abstract Unit processPaymentProof(String interviewId, ProcessPaymentProofListener processPaymentProofListener)
-
getPaymentProofInfo
abstract Unit getPaymentProofInfo(String interviewId, PaymentProofInfoListener paymentProofInfoListener)
-
setStrings
abstract Unit setStrings(Locale locale, Map<String, CharSequence> strings)
-
setStringArray
abstract Unit setStringArray(Locale locale, Map<String, Array<CharSequence>> stringArray)
-
setQuantityStrings
abstract Unit setQuantityStrings(Locale locale, Map<String, Map<QuantityKeyword, CharSequence>> quantityStrings)
-
processCustomWatchlist
abstract Unit processCustomWatchlist(String interviewId, ProcessCustomWatchlistListener processCustomWatchlistListener)
-
addNOM151Archive
abstract Unit addNOM151Archive(String interviewId, AddNOM151ArchiveListener addNOM151ArchiveListener)
-
getUserOCRData
abstract Unit getUserOCRData(String token, GetUserOCRDataListener getUserOCRDataListener)
-
addFace
abstract Unit addFace(FaceInfo faceInfo, FaceEventListener faceEventListener)
-
addFace
@Deprecated(message = "This method is deprecated and should no longer be used.", replaceWith = @ReplaceWith(imports = {}, expression = "addFace(faceInfo, faceEventListener)")) abstract Unit addFace(FaceInfo faceInfo)
-
removeFace
abstract Unit removeFace(String customerUUID, FaceEventListener faceEventListener)
-
removeFace
@Deprecated(message = "This method is deprecated and should no longer be used.", replaceWith = @ReplaceWith(imports = {}, expression = "removeFace(customerUUID, faceEventListener)")) abstract Unit removeFace(String customerUUID)
-
removeAllFaces
abstract Unit removeAllFaces(FaceEventListener faceEventListener)
-
setFaces
abstract Unit setFaces(List<FaceInfo> faceInfoList, FaceEventListener faceEventListener)
-
setFaces
@Deprecated(message = "This method is deprecated and should no longer be used.", replaceWith = @ReplaceWith(imports = {}, expression = "setFaces(faceInfoList, faceEventListener)")) abstract Unit setFaces(List<FaceInfo> faceInfoList)
-
getFaces
abstract Unit getFaces(FaceInfoListener faceInfoListener)
-
syncFaceLoginAttempts
abstract Unit syncFaceLoginAttempts(SyncFaceLoginAttemptsListener syncFaceLoginAttemptsListener)
-
processAntifraud
abstract Unit processAntifraud(String interviewId, AntifraudListener antifraudListener)
-
setFaceAuthenticationHint
abstract Unit setFaceAuthenticationHint(String faceAuthenticationHint)
-
fetchAllFlows
@Deprecated(message = "This method is deprecated and should no longer be used.") abstract Unit fetchAllFlows(String adminToken, IncodeWelcome.FetchFlowsListener fetchFlowsListener)
-
fetchFlow
@Deprecated(message = "This method is deprecated and should no longer be used.") abstract Unit fetchFlow(String flowId, String token, IncodeWelcome.FetchFlowListener fetchFlowListener)
-
fetchRegions
@Deprecated(message = "This method is deprecated as the region is no longer necessary in the onboarding flow.") abstract Unit fetchRegions(FetchRegionsListener fetchRegionsListener)
-
downloadLibraries
@Deprecated(message = "Libraries are now bundled with the SDK, and always available. This function should not be used anymore.") abstract Unit downloadLibraries()
-
isLibrariesReady
@Deprecated(message = "Libraries are now bundled with the SDK, and always available. This function always returns true.") abstract Boolean isLibrariesReady()
-
subscribeForLibrariesReady
@Deprecated(message = "Libraries are now bundled with the SDK, and always available. FaceRecognitionPrepareListener#onFaceRecognitionReady() is called immediately") abstract Unit subscribeForLibrariesReady(FaceRecognitionPrepareListener faceRecognitionReadyListener)
-
-
-
-