AMLSetupLib 1.1.0
dotnet add package AMLSetupLib --version 1.1.0
NuGet\Install-Package AMLSetupLib -Version 1.1.0
<PackageReference Include="AMLSetupLib" Version="1.1.0" />
<PackageVersion Include="AMLSetupLib" Version="1.1.0" />
<PackageReference Include="AMLSetupLib" />
paket add AMLSetupLib --version 1.1.0
#r "nuget: AMLSetupLib, 1.1.0"
#:package AMLSetupLib@1.1.0
#addin nuget:?package=AMLSetupLib&version=1.1.0
#tool nuget:?package=AMLSetupLib&version=1.1.0
AML Setup Library 
Overview
AML Setup Library provides an easy way to interface with an AML device to configure its settings and get hardware info. The library allows you to create an instance of AMLSetupClient. You can configure the device settings with a AML Setup configuration json string. This library works for Android.Xamarin, Xamarin Forms, and Maui.
Usage
The library contains a class called AMLSetupClient that is used to interface with the device:
var client = new AMLSetupClient(this);
The parameter for the constructor is the Context of the Android application.
Example
var client;
bool _connected = false;
public event Action<DeviceInfo> ReceiveDeviceInfo;
public void InitAMLClient()
{
client = new AMLSetupClient(this);
ReceiveDeviceInfo += ReceivedDeviceInfo;
client.Connected += AMLClientConnected;
client.Error += AMLClientError;
}
public void AMLClientConnected(bool permissionGranted)
{
if (permissionGranted)
{
_connected = true;
//Perform operations
client.GetDeviceInfo(ReceiveDeviceInfo);
}
}
public void ReceivedDeviceInfo(DeviceInfo info)
{
//DeviceInfo results
var serialNumber = info.GetSerialNumber();
}
public void AMLClientError(SdkError error)
{
//Handle error
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| MonoAndroid | monoandroid90 is compatible. |
-
MonoAndroid 9.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.
JSON deserialization fixes.