BradyCorp.Maui.SDK
3.1.1
dotnet add package BradyCorp.Maui.SDK --version 3.1.1
NuGet\Install-Package BradyCorp.Maui.SDK -Version 3.1.1
<PackageReference Include="BradyCorp.Maui.SDK" Version="3.1.1" />
<PackageVersion Include="BradyCorp.Maui.SDK" Version="3.1.1" />
<PackageReference Include="BradyCorp.Maui.SDK" />
paket add BradyCorp.Maui.SDK --version 3.1.1
#r "nuget: BradyCorp.Maui.SDK, 3.1.1"
#addin nuget:?package=BradyCorp.Maui.SDK&version=3.1.1
#tool nuget:?package=BradyCorp.Maui.SDK&version=3.1.1
BradyCorp.MAUI.SDK
Everyone wants an easier way to print. Especially in the field, where dollars are attached to minutes. If your apps can’t connect to a Brady printer, here’s the fix: Brady’s Software Development Kit (SDK). With it, your employees can use their own mobile app to print labels. It’s fast. It’s convenient. It’s a seamless way to get your label data to a Brady printer.
This Brady Print SDK .NET MAUI package is a display of what the Brady SDK can achieve. You will then have the ability to discover, connect, and print your desired templates and images with the API. The package also allows you to see over a dozen printer details and allows you to customize how labels print.
If your business wishes to print labels from its own mobile application, this is a perfect example to show how seamless the integration can appear when fully completed!
Setup
You must register the Brady SDK during dependency injection. In MauiProgram.cs, simply add .UseBradySdk() on your MauiAppBuilder object. For example, your MauiProgram.cs might look like this:
using BradySdk;
using Microsoft.Extensions.Logging;
namespace BradySdkMauiApp
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseBradySdk()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSansRegular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSansSemibold.ttf", "OpenSansSemibold");
});
builder.Services.AddSingleton<MainPage> ();
#if DEBUG
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}
Now, as long as you've registered a page correctly on your MauiAppBuilder object, you'll be able to inject an IBradySdk object to the contructor like:
//Demo app's MainPage.cs file
private readonly IBradySdk bradySdk;
public MainPage(IBradySdk bradySdkService)
{
bradySdk = bradySdkService;
this.InitializeComponent();
}
Lastly, you may call every API method in the Brady SDK on this object. Please refer to the .NET MAUI API page for documentation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios17.2 is compatible. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
-
net8.0-android34.0
- Codlab.Jackson.Annotations (>= 2.8.7.1)
- Codlab.Jackson.Core (>= 2.8.7.1)
- Codlab.Jackson.Databind (>= 2.8.7.1)
- Square.OkHttp3 (>= 4.12.0.4)
- Xamarin.AndroidX.Collection (>= 1.4.0.2)
- Xamarin.AndroidX.Collection.Ktx (>= 1.4.0.1)
- Xamarin.Google.ZXing.Core (>= 3.5.2.2)
- Xamarin.GooglePlayServices.Gcm (>= 117.0.0.13)
- Xamarin.GooglePlayServices.Tasks (>= 118.0.2.6)
-
net8.0-ios17.2
- 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.
3.1.1
- Documentation updates and corrections for 3.1.0
3.1.0
- Added support for the i7500 printer.
- Added printer property DotsPerInch, IsSupplyDirectThermal, and PostPrintAccessoryType
- Combined APIs to allow for generic calling from a Maui App using dependency injection.
- Internal refactor of the codebase to allow for easier maintenance and future updates.
3.0.0
- Added support for the S3700 printer.
- Added support for the i5300 printer.
- Print Previews now include accurate colors to reflect the installed supply and ribbon.
- Improvements with bitmap monochromization.
2.0.0
- Updated minSdkVersion for Android to 26
- App's with a minSdkVersion below 26 will not be able to connect to any printer if the mobile device is below Android 8
- Updated Android SDK to 2.0.1 (refer to https://sdk.bradyid.com/release_notes_android/ for details)
- Updated iOS SDK to 2.0.0 (refer to https://sdk.bradyid.com/release_notes_android/ for details)
- Updated README with further setup instructions.
- Revamped PlatformExceptions:
- Version 2.0.0 of the Android and iOS included many added exception messages that help the user pinpoint the location of the error and a resolution.
- You may now wrap any API method in a try/catch block to catch SdkApiExceptions.
- iOS Changes:
- Changed getPrinters() to return a Dictionary with the printer name and how it was discovered.
- Fixed a bug where related parts weren't considered a match (i.e. comparing the supplies "M21-750" and "M21-750-499" should return true).
- Fixed bug where users could not alternate between printing bitmaps and templates. It would print the same label that was set prior.
- TemplateDataNames now returns a Dictionary with the placeholder name mapped to the type of BWS object it is.
- Replaced API methods:
- CheckForPartMismatch with the SuppliesMatch API property.
- Feed() with FeedSupply()
- Cut() with CutSupply()
- GetPreviewBase64String() with GetPreview()
- Added API methods:
- YNumber (property)
- RibbonName (property)
- RibbonRemainingPercentage (property)
- SetAutomaticShutoffTime()
- SetTemplateWithFilePath()
- SetTemplateWithBase64()
- Removed API methods:
- PrinterDetailsString (property)
- SetTemplate()
1.7.0
- The first version of the MAUI wrapper that will be produced internally. This package includes everything supported in the BradyCorp.Xamarin.SDK NuGet package version 1.7.0