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:
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:
using UqudoSDK;
...
{
[Register("AppDelegate")]
public class AppDelegate : UIResponder, IUIApplicationDelegate
...
[Export("application:didFinishLaunchingWithOptions:")]
public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
new UQBuilderController();
return true;
}
To check if a document supports lookup and lookup + facial recognition you can use the below methods: