BradyCorp.Xamarin.SDK 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package BradyCorp.Xamarin.SDK --version 1.0.3
NuGet\Install-Package BradyCorp.Xamarin.SDK -Version 1.0.3
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="BradyCorp.Xamarin.SDK" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BradyCorp.Xamarin.SDK --version 1.0.3
#r "nuget: BradyCorp.Xamarin.SDK, 1.0.3"
#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.
// Install BradyCorp.Xamarin.SDK as a Cake Addin
#addin nuget:?package=BradyCorp.Xamarin.SDK&version=1.0.3

// Install BradyCorp.Xamarin.SDK as a Cake Tool
#tool nuget:?package=BradyCorp.Xamarin.SDK&version=1.0.3

BradyCorp.Xamarin.SDK

The official Xamarin wrapper for the Brady SDK allows development in C# to integrate both the iOS and Android functionalities supported by the Brady SDK's.


Setup

To start, you must add this package to both the iOS and Android native projects if you are using a Xamarin.Forms application. To access the library's API, use the following using statements: - Android: "using BradySdkBindings.Droid" - iOS: "using BradySdkBindings.iOS"

Next, intialize a BradySdk object using the constructors: - Android: "new BradySdk(Context)" - iOS: "new BradySdk()"

NOTE: The Xamarin Binding MUST be implemented for both iOS and Android separately in both native projects. This is due to different constructors for each platform and alternative threading methods that need to be dealt with differently.


For Xamarin.iOS only, you must call the .connectToPrinter(String) and .print() methods from a different thread. That might look like this:

Thread connectThread = new Thread(() =>
{
	bool status = BradySdk.connectToPrinter(printer).Result;
    if (status)
    {
       Debug.WriteLine("Connection Status: " + status);
    }
});
connectThread.Start();

Releases

1.0.3 is consistent with the Brady SDK Flutter plugin's API and contains the same capabilities such as: - Discovering, connecting, and printing to the M211, M611, and M511 via Bluetooth Low Energy. - Discovering, connecting, and printing to the M611 via wireless internet (Wifi). - Deserealizing and printing any Brady Workstation objects in a BWT file referenced at https://sdk.bradyid.com/supported_objects/ - Feeding, cutting, and disconnecting. - Supports a version of auto connecting to your previously connected to printer via the getLastConnectedPrinterName API method.

1.0.2, 1.0.1, and 1.0.0 were all versions of the Xamarin Bindings that were created, used, and tested locally. - This was done by generating a .nupkg and manually adding the package to a test project.

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid12.0 is compatible. 
Xamarin.iOS xamarinios is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.0 86 4/25/2024
1.3.4 827 1/23/2024
1.3.2 1,668 12/5/2023
1.3.1 1,458 11/14/2023
1.3.0 897 10/11/2023
1.2.4 1,288 8/21/2023
1.2.3 1,321 8/9/2023
1.2.2 1,490 8/8/2023
1.2.1 1,274 8/4/2023
1.2.0 1,630 8/1/2023
1.1.0 1,504 7/18/2023
1.0.4 1,263 7/14/2023
1.0.3 1,582 7/6/2023

1.0.3 is the first published NuGet for the Brady SDK Xamarin Bindings on nuget.org
This version is consistent with the Brady SDK Flutter plugin's API and contains the same capabilities such as:
- Discovering, connecting, and printing to the M211, M611, and M511 via Bluetooth Low Energy.
- Discovering, connecting, and printing to the M611 via wireless internet (Wifi).
- Deserealizing and printing any Brady Workstation objects in a BWT file referenced at https://sdk.bradyid.com/supported_objects/
- Feeding, cutting, and disconnecting.
- Supports a version of auto connecting to your previously connected to printer via the getLastConnectedPrinterName API method.

1.0.2, 1.0.1, and 1.0.0 were all versions of the Xamarin Bindings that were created, used, and tested locally.
This was done by generating a .nupkg and manually adding the package to a test project.