Ansight.Pairing
1.2.0-preview.1
See the version list below for details.
dotnet add package Ansight.Pairing --version 1.2.0-preview.1
NuGet\Install-Package Ansight.Pairing -Version 1.2.0-preview.1
<PackageReference Include="Ansight.Pairing" Version="1.2.0-preview.1" />
<PackageVersion Include="Ansight.Pairing" Version="1.2.0-preview.1" />
<PackageReference Include="Ansight.Pairing" />
paket add Ansight.Pairing --version 1.2.0-preview.1
#r "nuget: Ansight.Pairing, 1.2.0-preview.1"
#:package Ansight.Pairing@1.2.0-preview.1
#addin nuget:?package=Ansight.Pairing&version=1.2.0-preview.1&prerelease
#tool nuget:?package=Ansight.Pairing&version=1.2.0-preview.1&prerelease
Ansight.Pairing
Ansight.Pairing adds package-owned native pairing 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.
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
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 first-use flow. It registers a random app-installation
id using the one-use Studio invite. Auto() and host auto-probe then use the
saved registration for reconnect. Payload and bundled inputs remain advanced
alternatives for CI and simulator workflows.
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.2.0-preview.1)
- Xamarin.GooglePlayServices.Code.Scanner (>= 116.1.0.4)
-
net9.0-ios18.0
- Ansight.Core (>= 1.2.0-preview.1)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 1.2.0-preview.1)
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.2.0-preview.3 | 33 | 8/5/2026 |
| 1.2.0-preview.2 | 34 | 8/4/2026 |
| 1.2.0-preview.1 | 39 | 8/4/2026 |
| 1.1.0-preview.1 | 45 | 7/31/2026 |
| 1.0.2-preview.8 | 56 | 7/29/2026 |
| 1.0.2-preview.7 | 45 | 7/28/2026 |
| 1.0.2-preview.6 | 49 | 7/28/2026 |
| 1.0.2-preview.5 | 50 | 7/27/2026 |
| 1.0.2-preview.4 | 49 | 7/27/2026 |
| 1.0.2-preview.3 | 108 | 7/7/2026 |
| 1.0.2-preview.2 | 56 | 7/6/2026 |
| 1.0.2-preview.1 | 63 | 6/30/2026 |
| 1.0.1 | 132 | 6/24/2026 |
| 0.2.0-preview.1 | 69 | 6/3/2026 |
| 0.1.0 | 181 | 5/26/2026 |
| 0.1.0-preview.24 | 76 | 5/25/2026 |
| 0.1.0-preview.23 | 58 | 5/23/2026 |
| 0.1.0-preview.22 | 70 | 5/23/2026 |
| 0.1.0-preview.21 | 67 | 5/19/2026 |
| 0.1.0-preview.20 | 66 | 5/15/2026 |