Ansight.Pairing
0.1.0-pre3
See the version list below for details.
dotnet add package Ansight.Pairing --version 0.1.0-pre3
NuGet\Install-Package Ansight.Pairing -Version 0.1.0-pre3
<PackageReference Include="Ansight.Pairing" Version="0.1.0-pre3" />
<PackageVersion Include="Ansight.Pairing" Version="0.1.0-pre3" />
<PackageReference Include="Ansight.Pairing" />
paket add Ansight.Pairing --version 0.1.0-pre3
#r "nuget: Ansight.Pairing, 0.1.0-pre3"
#:package Ansight.Pairing@0.1.0-pre3
#addin nuget:?package=Ansight.Pairing&version=0.1.0-pre3&prerelease
#tool nuget:?package=Ansight.Pairing&version=0.1.0-pre3&prerelease
Ansight.Pairing
Ansight.Pairing adds package-owned native pairing acquisition to Ansight.
It provides:
- native QR scanning for
HostConnectionRequest.QrCode(...) - Android scanner acquisition via the current
Activityand native Apple modal presentation - a default
IHostConnectionConfigReaderwired into the existing runtime-owned host connection flow
Developer pairing is generated by the base Ansight package. Enable AnsightDeveloperPairingEnabled in the app project, then configure WithBundledHostConnection(...); Ansight.Pairing only adds the native QR acquisition path used by explicit overrides.
Usage
using Ansight;
#if ANDROID
using Microsoft.Maui.ApplicationModel;
#endif
var optionsBuilder = Options.CreateBuilder()
.WithBundledHostConnection(typeof(AppBootstrap).Assembly);
#if ANDROID
optionsBuilder = optionsBuilder.WithPlatformPairing(() => Platform.CurrentActivity);
#else
optionsBuilder = optionsBuilder.WithPlatformPairing();
#endif
var options = optionsBuilder.Build();
Runtime.InitializeAndActivate(options);
On Android, Ansight.Pairing requires the app to provide the current Activity so the package can launch the native scanner UI.
Once enabled, the app can keep using the existing host connection requests:
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.Auto());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.QrCode());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.PayloadText(payload));
Auto() still follows the normal Ansight default order: embedded developer pairing, cached session, saved config, then plain bundled config. Explicit QR and payload requests always override the current connection attempt.
| 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 (>= 0.1.0-pre3)
- Xamarin.GooglePlayServices.Code.Scanner (>= 116.1.0.4)
-
net9.0-ios18.0
- Ansight (>= 0.1.0-pre3)
-
net9.0-maccatalyst18.0
- Ansight (>= 0.1.0-pre3)
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 |
|---|---|---|
| 0.1.0-preview.21 | 34 | 5/19/2026 |
| 0.1.0-preview.20 | 50 | 5/15/2026 |
| 0.1.0-preview.19 | 63 | 5/8/2026 |
| 0.1.0-preview.18 | 61 | 5/8/2026 |
| 0.1.0-preview.17 | 50 | 5/8/2026 |
| 0.1.0-preview.16 | 50 | 5/6/2026 |
| 0.1.0-preview.15 | 48 | 5/5/2026 |
| 0.1.0-preview.14 | 59 | 5/5/2026 |
| 0.1.0-preview.13 | 42 | 5/5/2026 |
| 0.1.0-pre9 | 57 | 5/3/2026 |
| 0.1.0-pre8 | 46 | 5/3/2026 |
| 0.1.0-pre7 | 49 | 4/30/2026 |
| 0.1.0-pre6 | 44 | 4/30/2026 |
| 0.1.0-pre5 | 45 | 4/30/2026 |
| 0.1.0-pre4 | 56 | 4/27/2026 |
| 0.1.0-pre3 | 60 | 4/21/2026 |
| 0.1.0-pre12 | 48 | 5/4/2026 |
| 0.1.0-pre11 | 58 | 5/4/2026 |
| 0.1.0-pre10 | 45 | 5/3/2026 |