Plugin.Maui.SunmiInnerPrinter 0.0.1-preview1

This is a prerelease version of Plugin.Maui.SunmiInnerPrinter.
dotnet add package Plugin.Maui.SunmiInnerPrinter --version 0.0.1-preview1
NuGet\Install-Package Plugin.Maui.SunmiInnerPrinter -Version 0.0.1-preview1
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="Plugin.Maui.SunmiInnerPrinter" Version="0.0.1-preview1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.Maui.SunmiInnerPrinter --version 0.0.1-preview1
#r "nuget: Plugin.Maui.SunmiInnerPrinter, 0.0.1-preview1"
#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 Plugin.Maui.SunmiInnerPrinter as a Cake Addin
#addin nuget:?package=Plugin.Maui.SunmiInnerPrinter&version=0.0.1-preview1&prerelease

// Install Plugin.Maui.SunmiInnerPrinter as a Cake Tool
#tool nuget:?package=Plugin.Maui.SunmiInnerPrinter&version=0.0.1-preview1&prerelease

Plugin.Maui.SunmiInnerPrinter

Plugin.Maui.SunmiInnerPrinter provides the ability to do this amazing thing in your .NET MAUI application.

Install Plugin

NuGet

Available on NuGet.

Install with the dotnet CLI: dotnet add package Plugin.Maui.SunmiInnerPrinter, or through the NuGet Package Manager in Visual Studio.

Supported Platforms

Platform Minimum Version Supported
Android 5.0 (API 21)

API Usage

Plugin.Maui.SunmiInnerPrinter provides the SunmiInnerPrinter class.

You can use it with dependency injection: builder.Services.AddSingleton<ISunmiInnerPrinter>(SunmiInnerPrinter.Instance);

Permissions

Before you can start using SunmiInnerPrinter, you will need to request the proper permissions on each platform.

Android

No permissions are needed for Android.

Dependency Injection

You will first need to register the SunmiInnerPrinter with the MauiAppBuilder following the same pattern that the .NET MAUI Essentials libraries follow.

builder.Services.AddSingleton(SunmiInnerPrinter.Instance);

You can then enable your classes to depend on ISunmiInnerPrinter as per the following example.

public class SunmiInnerPrinterViewModel
{
    readonly ISunmiInnerPrinter sunmiInnerPrinter;

    public SunmiInnerPrinterViewModel(ISunmiInnerPrinter sunmiInnerPrinter)
    {
        this.sunmiInnerPrinter = sunmiInnerPrinter;
    }

    public void StartSunmiInnerPrinter()
    {
        sunmiInnerPrinter.PrintText("Sample Print");
    }
}

Acknowledgements

This project could not have came to be without these projects and people, thank you! ❤️

Product Compatible and additional computed target framework versions.
.NET net7.0-android33.0 is compatible.  net8.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0-android33.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.

Version Downloads Last updated
0.0.1-preview1 218 11/11/2023