Ansight.Pairing
1.4.0-preview.3
See the version list below for details.
dotnet add package Ansight.Pairing --version 1.4.0-preview.3
NuGet\Install-Package Ansight.Pairing -Version 1.4.0-preview.3
<PackageReference Include="Ansight.Pairing" Version="1.4.0-preview.3" />
<PackageVersion Include="Ansight.Pairing" Version="1.4.0-preview.3" />
<PackageReference Include="Ansight.Pairing" />
paket add Ansight.Pairing --version 1.4.0-preview.3
#r "nuget: Ansight.Pairing, 1.4.0-preview.3"
#:package Ansight.Pairing@1.4.0-preview.3
#addin nuget:?package=Ansight.Pairing&version=1.4.0-preview.3&prerelease
#tool nuget:?package=Ansight.Pairing&version=1.4.0-preview.3&prerelease
Ansight.Pairing
Ansight.Pairing adds package-owned native enrollment acquisition to
Ansight.Core.
It provides:
- native QR scanning for
HostConnectionRequest.QrCode(...) - automatic Android activity tracking and native Apple modal presentation
- a default
IHostConnectionConfigReaderwired into the existing runtime-owned host connection flow
The Ansight and Ansight.Maui all-in-one packages include this package where supported.
dotnet add package Ansight.Pairing --prerelease
License
The Ansight SDK is source-available software under the Ansight SDK Source-Available License. It is not open-source software. Production use is licensed only for use with Ansight Services.
Usage
Start the local host with ansight host run. Host-local runtimes register
automatically and do not need this UI. For a physical device, issue a one-use
QR:
ansight pairing issue --qr
Open the reader only from a developer-only app surface:
using Ansight;
var optionsBuilder = Options.CreateBuilder()
.WithPlatformPairing();
var options = optionsBuilder.Build();
Runtime.InitializeAndActivate(options);
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.QrCode());
On Android, the package tracks the resumed Activity itself. The overload that
accepts an activity provider remains available for unusual host frameworks.
Once enabled, the app can keep using the existing host connection requests:
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.QrCode());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.Auto());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.PayloadText(payload));
QrCode() is the normal physical-device first-use flow. It registers a random
app-installation id using the one-use host invite. Auto() and host auto-probe
then use the saved registration for reconnect. PayloadText(...) is for apps
that already own the scanner; a bundled pairing file is not part of normal
setup.
See the .NET enrollment guide for the complete physical-device flow.
Configure profile retention through the core options builder:
var options = Options.CreateBuilder()
.WithHostConnectionProfileRetention(TimeSpan.FromDays(30))
.Build();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net9.0-maccatalyst18.0 is compatible. net10.0-android was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. |
-
net9.0-android35.0
- Ansight.Core (>= 1.4.0-preview.3)
- Xamarin.GooglePlayServices.Code.Scanner (>= 116.1.0.4)
-
net9.0-ios18.0
- Ansight.Core (>= 1.4.0-preview.3)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 1.4.0-preview.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ansight.Pairing:
| Package | Downloads |
|---|---|
|
Ansight
All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0-preview.5 | 31 | 8/26/2026 |
| 1.4.0-preview.3 | 37 | 8/25/2026 |
| 1.4.0-preview.1 | 45 | 8/24/2026 |
| 1.3.0-preview.12 | 44 | 8/24/2026 |
| 1.3.0-preview.11 | 47 | 8/23/2026 |
| 1.3.0-preview.10 | 50 | 8/21/2026 |
| 1.3.0-preview.9 | 55 | 8/20/2026 |
| 1.3.0-preview.8 | 50 | 8/20/2026 |
| 1.3.0-preview.6 | 53 | 8/19/2026 |
| 1.3.0-preview.5 | 51 | 8/19/2026 |
| 1.3.0-preview.4 | 55 | 8/17/2026 |
| 1.3.0-preview.3 | 63 | 8/10/2026 |
| 1.3.0-preview.2 | 51 | 8/10/2026 |
| 1.3.0-preview.1 | 52 | 8/10/2026 |
| 1.2.0-preview.3 | 53 | 8/5/2026 |
| 1.2.0-preview.2 | 53 | 8/4/2026 |
| 1.2.0-preview.1 | 57 | 8/4/2026 |
| 1.1.0-preview.1 | 58 | 7/31/2026 |
| 1.0.2-preview.8 | 63 | 7/29/2026 |
| 1.0.1 | 139 | 6/24/2026 |