Skip to content

Repository files navigation

ZebraScannerSDK.Maui Buy Me A Coffee

Enhanced .NET MAUI version of the Zebra Scanner SDK for Xamarin/MAUI.

NuGet

Name Info
ZebraScannerSDK.Maui NuGet

Background

A couple of years ago, when upgrading a Xamarin application to .NET MAUI, the Zebra Scanner Xamarin Wrapper (Android and iOS) was not yet migrated to .NET MAUI, so this library was created. Zebra have since then released the .NET MAUI Wrapper for Scanner SDK (iOS and Android) package. That package is not distributed as a common NuGet package and is not updated in the same pace as the native Android/iOS libraries, therefore this library is still maintained as a convenient complement.

What's included?

Compared to the original solution we have some enhanced and added features:

  • One easy to use NuGet package.
  • Easy setup with service collection extension.
  • New IScannerSDK interface registered for constructor injection with DI.

Setup

Use the AddZebraScannerSDK service collection extension method for library configuration.

var builder = MauiApp.CreateBuilder();
builder
    .UseMauiApp<App>()
    .ConfigureFonts(fonts =>
    {
        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
        fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
    })

    //Add Services
    builder.Services.AddZebraScannerSDK();

For further documentation, see the Official Zebra Resources or the Sample application.

Sample

Look at the Sample project for a example of how to use this library in an .NET MAUI application.

Main View Pairing View

Official Zebra Resources

About

Enhanced .NET MAUI version of the Zebra Scanner SDK for Xamarin/MAUI.

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages