iProov.NET.Android
9.1.1
See the version list below for details.
dotnet add package iProov.NET.Android --version 9.1.1
NuGet\Install-Package iProov.NET.Android -Version 9.1.1
<PackageReference Include="iProov.NET.Android" Version="9.1.1" />
paket add iProov.NET.Android --version 9.1.1
#r "nuget: iProov.NET.Android, 9.1.1"
// Install iProov.NET.Android as a Cake Addin #addin nuget:?package=iProov.NET.Android&version=9.1.1 // Install iProov.NET.Android as a Cake Tool #tool nuget:?package=iProov.NET.Android&version=9.1.1
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
Using the NuGet Package Manager, add the iProov.NET.Android package to your project.
Import the package into your project with
using iProov.NET.Android;
Create an instance of IProovCallbackLauncher
IProovCallbackLauncher iProovLauncher = new IProovCallbackLauncher();
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 yourActivity
class.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(); }
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. |
-
net8.0-android34.0
- Xamarin.AndroidX.AppCompat (>= 1.6.1.5)
- Xamarin.AndroidX.DataBinding.ViewBinding (>= 8.1.4)
- Xamarin.AndroidX.Lifecycle.Runtime.Ktx (>= 2.6.2.2)
- Xamarin.Kotlin.StdLib.Jdk8 (>= 1.9.20)
- Xamarin.KotlinX.Coroutines.Android (>= 1.7.3.2)
- Xamarin.KotlinX.Coroutines.Core (>= 1.7.3.2)
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.