Plugin.Maui.SunmiInnerPrinter
0.0.1-preview1
dotnet add package Plugin.Maui.SunmiInnerPrinter --version 0.0.1-preview1
NuGet\Install-Package Plugin.Maui.SunmiInnerPrinter -Version 0.0.1-preview1
<PackageReference Include="Plugin.Maui.SunmiInnerPrinter" Version="0.0.1-preview1" />
paket add Plugin.Maui.SunmiInnerPrinter --version 0.0.1-preview1
#r "nuget: Plugin.Maui.SunmiInnerPrinter, 0.0.1-preview1"
// 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
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-android33.0 is compatible. net8.0-android was computed. net9.0-android was computed. |
-
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 | 250 | 11/11/2023 |