Lookup Flow

Note: This feature requires an additional permission and must be explicitly requested

The "Lookup Flow" it's the same as the "Enrollment Flow" with the only difference that the first step is not the automatic scanning of a document through the camera phone but the user is asked to manually type in some information of the document that can be used to perform the lookup on the government database. Only one document at the time is supported. Other features like facial recognition and background check can be enabled in the same way as per the "Enrollment Flow". Note that not all the documents are supported.

In order to use our SDK you need an authorization token. Please check our API "Authorisation" in this regard.

Android

Add the following code at the start-up of your application to initialise the SDK:

IO.Uqudo.Sdk.Core.UqudoSDK.Init(this);

To check if a document supports lookup and lookup + facial recognition you can use the below methods:

....
bool isLookupSupported = IO.Uqudo.Sdk.Core.Domain.Model.DocumentType.NgaVoterId.LookupSupported;
bool isLookupFacialRecognitionSupported = IO.Uqudo.Sdk.Core.Domain.Model.DocumentType.NgaVoterId.LookupFacialRecognitionSupported;
....

Below, you can find an example on how to initiate the lookup flow:

var uqudoLookupBuilder = new IO.Uqudo.Sdk.Core.UqudoBuilder.Lookup();
bool isLookupFacialRecognitionSupported = IO.Uqudo.Sdk.Core.Domain.Model.DocumentType.NgaVoterId.LookupFacialRecognitionSupported;

if (isLookupFacialRecognitionSupported)
{
    var facialRecognitionConfigurationBuilder = new IO.Uqudo.Sdk.Core.Builder.FacialRecognitionConfigurationBuilder();
    facialRecognitionConfigurationBuilder.SetLookupMinimumMatchLevel(4);
    uqudoLookupBuilder.EnableFacialRecognition(facialRecognitionConfigurationBuilder.Build());
}

var backgroundCheck = new IO.Uqudo.Sdk.Core.Builder.BackgroundCheckConfigurationBuilder();
backgroundCheck.SetBackgroundCheckType(IO.Uqudo.Sdk.Core.Domain.Model.BackgroundCheckType.Rdc);
uqudoLookupBuilder.EnableBackgroundCheck(backgroundCheck.Build());
uqudoLookupBuilder.SetToken(token);
uqudoLookupBuilder.SetDocumentType(IO.Uqudo.Sdk.Core.Domain.Model.DocumentType.NgaNin);

StartActivityForResult(uqudoLookupBuilder.Build(this), 101);

In order to evaluate all the possible options please refer to section Lookup Flow. The C# interface is the porting of the JAVA one.

iOS

To initialize the SDK, within your AppDelegate class under FinishedLaunching instantiate UQBuilderController() as the following example:

To check if a document supports lookup and lookup + facial recognition you can use the below methods:

Below, you can find an example on how to initiate the lookup flow:

UqudoBuilderControllerDelegate.cs

In order to evaluate all the possible options please refer to section Lookup Flow. The C# interface is the binding to the Objective-C one.

Android and iOS

To handle the result check the Android documentation "Handling the Result" for Android and the iOS documentation "Handling the Result" for iOS.

Last updated

Was this helpful?