uz.tadi.gsi
1.0.2
dotnet add package uz.tadi.gsi --version 1.0.2
NuGet\Install-Package uz.tadi.gsi -Version 1.0.2
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="uz.tadi.gsi" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uz.tadi.gsi" Version="1.0.2" />
<PackageReference Include="uz.tadi.gsi" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add uz.tadi.gsi --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: uz.tadi.gsi, 1.0.2"
#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.
#:package uz.tadi.gsi@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=uz.tadi.gsi&version=1.0.2
#tool nuget:?package=uz.tadi.gsi&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
uz.tadi.gsi — GSI Biometric Identity SDK for .NET MAUI
A .NET MAUI binding library for the GSI biometric identity verification SDK, supporting both Android and iOS.
Requirements
| Platform | Minimum Version |
|---|---|
| Android | API 21 (Android 5.0) |
| iOS | 13.0 |
| .NET | 9.0 |
Installation
dotnet add package uz.tadi.gsi
Or in your .csproj:
<PackageReference Include="uz.tadi.gsi" Version="1.0.0" />
Quick Start
1. Create a config
using GsiMauiBinding;
using GsiMauiBinding.Models;
var config = new GsiSdkConfig
{
Token = "your-access-token",
BaseUrl = "https://your-gsi-api.example.com",
Locale = "en", // "en", "uz", or "ru"
};
2. Start face detection
IGsiSdk sdk = new GsiSdkService();
sdk.Start(
config,
onSuccess: person =>
{
Console.WriteLine($"Name: {person.FirstName} {person.LastName}");
Console.WriteLine($"PIN: {person.Pin}");
Console.WriteLine($"Score: {person.Score}");
},
onError: error =>
{
Console.WriteLine($"Error: {error}");
}
);
Android — additional setup
Register the ActivityResultLauncher in your MainActivity before calling Start:
// In MainActivity.cs
var launcher = RegisterForActivityResult(
new ActivityResultContracts.StartActivityForResult(),
result => sdk.HandleActivityResult(result.Data)
);
sdk.RegisterLauncher(launcher);
Add permissions to AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
Configuration Reference
| Property | Type | Default | Description |
|---|---|---|---|
Token |
string |
— | Authentication token (required) |
BaseUrl |
string |
— | GSI service base URL (required) |
Locale |
string |
"en" |
UI language: "en", "uz", "ru" |
BankId |
string? |
null |
Optional bank identifier |
ResultType |
string |
"standard" |
Result format: "standard" or "nested" |
UseNative |
bool |
true |
Use native camera UI |
CameraShape |
string |
"oval" |
Viewfinder shape: "oval" or "circle" |
PrivacyPolicyUrl |
string? |
null |
Privacy policy URL shown in the SDK |
EnableMutualSsl |
bool |
false |
Enable mutual TLS |
ClientCertificateBase64 |
string? |
null |
Client certificate (Base64, P12 format) |
ClientCertificatePassword |
string? |
null |
Client certificate password |
ClientCertificateAlias |
string? |
null |
Keystore alias (Android only) |
LogoBytes |
byte[]? |
null |
Organisation logo bytes |
PrimaryColorHex |
string? |
null |
Primary color e.g. "#E4A216" |
JwtSecretKey |
string? |
null |
JWT secret key (Android only) |
JwtPublicKey |
string? |
null |
JWT public key (Android only) |
Result Model
A successful scan returns a GsiPerson object:
public class GsiPerson
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Patronym { get; set; }
public string Pin { get; set; }
public string DocPinfl { get; set; }
public string DocSeria { get; set; }
public string DocNumber { get; set; }
public string BirthDate { get; set; }
public string Photo { get; set; } // Base64 image
public double Score { get; set; } // Face match confidence
public string TransactionId { get; set; }
public string Citizenship { get; set; }
public string Nationality { get; set; }
public string BirthPlace { get; set; }
public string Capture { get; set; }
public string Signature { get; set; }
}
SSL / Mutual TLS
var config = new GsiSdkConfig
{
Token = "your-token",
BaseUrl = "https://your-api.example.com",
EnableMutualSsl = true,
ClientCertificateBase64 = "BASE64_P12_CERTIFICATE",
ClientCertificatePassword = "certificate-password",
};
UI Customization
var config = new GsiSdkConfig
{
Token = "your-token",
BaseUrl = "https://your-api.example.com",
PrimaryColorHex = "#E4A216",
CameraShape = "circle",
Locale = "uz",
};
Platform Notes
- Android: Uses
FaceDetectionSdk(AAR) with Camera, Internet, and Wake Lock permissions. - iOS: Uses
TGFISBIN.xcframework(pure Swift) viaGsiSwiftBridge.xcframework(ObjC bridge). Requires iOS 13+.
License
Proprietary — © uz.tadi. All rights reserved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net10.0-android was computed. net10.0-ios was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0-android35.0
- No dependencies.
-
net9.0-ios18.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.