iProov.NET.Android 9.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package iProov.NET.Android --version 9.0.3                
NuGet\Install-Package iProov.NET.Android -Version 9.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="iProov.NET.Android" Version="9.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iProov.NET.Android --version 9.0.3                
#r "nuget: iProov.NET.Android, 9.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install iProov.NET.Android as a Cake Addin
#addin nuget:?package=iProov.NET.Android&version=9.0.3

// Install iProov.NET.Android as a Cake Tool
#tool nuget:?package=iProov.NET.Android&version=9.0.3                

iProov.NET.Android NuGet

Introduction

The iProov.NET.Android NuGet enables you to integrate iProov's SDK into your .NET Android projects.

This NuGet wraps iProov's existing native Android SDK behind a .NET interface for use from within your .NET app.

For a more extensive documentation on iProov's .NET packages check the public GitHub repository here.

Requirements

  • NET 8 (net8-android)
  • Android API Level 21 (Android 5 Lollipop) and above

How to use it

  1. Using the NuGet Package Manager, add the iProov.NET.Android package to your project.

  2. Import the package into your project with using iProov.NET.Android;

  3. Create an instance of IProovCallbackLauncher

     IProovCallbackLauncher iProovLauncher = new IProovCallbackLauncher();
    
  4. Create a private class which implements IProovCallbackLauncher.IListener to handle the callbacks from the Android SDK:

     private IProovListener listener = new IProovListener();
    
     private class IProovListener : Java.Lang.Object, IProov.IListener
     {
    
     	public void OnConnected()
     	{
        		// Called when the SDK is connecting to the server. You should provide an indeterminate
        		// progress indication to let the user know that the connection is being established.
     	}
    
     	public void OnConnecting()
     	{
        		// The SDK has connected, and the iProov user interface will now be displayed. You
        		// should hide any progress indication at this point.
     	}
    
     	public void OnCanceled(IProov.Canceler canceler)
     	{
        		// Either the user canceled iProov by pressing the Close button at the top right or
     		// the Home button (canceler == USER)
     		// Or the app canceled using Session.cancel() (canceler == APP).
     		// You should use this to determine the next step in your flow.
     	}
    
     	public void OnError(IProovException error)
     	{
     		// The user was not successfully verified/enrolled due to an error (e.g. lost internet connection)
     		// along with an IProovException.
     		// It will be called once, or never.
     	}
    
     	public void OnFailure(IProov.FailureResult result)
     	{
     		// The user was not successfully verified/enrolled, as their identity could not be verified,
     		// or there was another issue with their verification/enrollment. A reason (as a string resource id)
     		// is provided as to why the claim failed, along with a feedback code from the back-end.
    
     		var feedbackCode = result.FeedbackCode;
     		var reason = result.Reason.Description;
     	}
    
     	public void OnProcessing(double progress, string message)
     	{
     		// The SDK will update your app with the progress of streaming to the server and authenticating
     		// the user. This will be called multiple times as the progress updates.
     	}
    
     	public void OnSuccess(IProov.SuccessResult result)
     	{
     		// The user was successfully verified/enrolled and the token has been validated.
     		// You must always independently validate the token server-side (using the /validate API call) 
     		// before performing any authenticated user actions.
     	}
    
     }
    
    

    Alternatively you could just implement IProov.IListener on your Activity class.

  5. You must register the iProov listener when your Activity is created:

    
     IProovCallbackLauncher iProovLauncher = new IProovCallbackLauncher();
     IProovListener listener = new IProovListener();
    
     protected override void OnCreate(Bundle savedInstanceState)
     {
     	base.OnCreate(savedInstanceState);
     	iProovLauncher.Listener = listener;
    
     	// ...continue your activity setup ...
     }
    

    ...and unregister it when destroyed:

     protected override void OnDestroy()
     {
     	iProovLauncher.Listener = null;
     	base.OnDestroy();
     }
    
  6. Once you have obtained a token (either via the .NET API Client or other means), you can now launch iProov by calling:

     iProovLauncher.Launch(this, "wss://eu.rp.secure.iproov.me/ws", token, new IProov.Options()); // Substitute the streaming URL as appropriate
    

👉 You should now familiarise yourself with the iProov Android SDK documentation which provides comprehensive details about the available customization options and other important details regarding the Android SDK usage.

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on iProov.NET.Android:

Package Downloads
iProov.NET.MAUI

.NET MAUI class library for the iProov iOS and Android native SDKs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
10.0.2 746 10/28/2024
10.0.0 3,665 7/26/2024
9.1.1 846 6/28/2024
9.0.3 6,820 3/4/2024