Aquila.MsgBits
1.1.4
dotnet add package Aquila.MsgBits --version 1.1.4
NuGet\Install-Package Aquila.MsgBits -Version 1.1.4
<PackageReference Include="Aquila.MsgBits" Version="1.1.4" />
<PackageVersion Include="Aquila.MsgBits" Version="1.1.4" />
<PackageReference Include="Aquila.MsgBits" />
paket add Aquila.MsgBits --version 1.1.4
#r "nuget: Aquila.MsgBits, 1.1.4"
#:package Aquila.MsgBits@1.1.4
#addin nuget:?package=Aquila.MsgBits&version=1.1.4
#tool nuget:?package=Aquila.MsgBits&version=1.1.4
Aquila.MsgBits
π Lightweight Android messaging utility for .NET MAUI
Aquila.MsgBits provides a simple, native, and extensible messaging API for .NET MAUI applications, starting with Android Toast messages and designed to grow into snackbars, alerts, and more.
π Overview
Aquila.MsgBits is a developer-friendly utility that helps you display short user messages without writing platform-specific code.
Instead of dealing with Android namespaces, platform checks, or heavy UI plugins, you use one clean API:
MsgBits.Show("Operation successful");
β Why Aquila.MsgBits?
In .NET MAUI:
- There is no built-in Toast API
- Developers often repeat Android-specific code
- UI logic gets polluted with platform checks
- Third-party plugins add unnecessary weight
Aquila.MsgBits solves this by providing a single, minimal, native abstraction.
β¨ Key Features
- β Native Android Toast messages
- β Single-line API
- β Android-only (safe no-op on other platforms)
- β Zero configuration
- β No external dependencies
- β Clean and extensible design
- β Production-ready
π¦ Installation
Using NuGet
dotnet add package Aquila.MsgBits
Or install via Visual Studio β NuGet Package Manager.
π Usage
Basic Message
using Aquila.MsgBits;
MsgBits.Show("Hello from Aquila!");
Long Message
MsgBits.Show("Data saved successfully", MessageLength.Long);
Thatβs it. No initialization. No platform-specific code.
π§ Platform Support
| Platform | Supported | Behavior |
|---|---|---|
| Android | β Yes | Shows native toast |
| iOS | β No | Safe no-op |
| Windows | β No | Safe no-op |
| macOS | β No | Safe no-op |
You can safely call
MsgBits.Show()from shared MAUI code.
π With vs Without Aquila.MsgBits
β Without Aquila.MsgBits
#if ANDROID
Android.Widget.Toast.MakeText(
Android.App.Application.Context,
"Hello",
Android.Widget.ToastLength.Short
).Show();
#endif
Problems:
- Platform checks everywhere
- Repeated boilerplate
- Harder maintenance
- Poor scalability
β With Aquila.MsgBits
MsgBits.Show("Hello");
Benefits:
- Clean shared code
- Better readability
- Easier refactoring
- Future-ready API
π§ Design Philosophy
- One entry point (
MsgBits) - Platform logic hidden internally
- Extensible architecture
- Minimal surface area
- No magic, no heavy abstractions
This allows future additions like:
MsgBits.Snackbar("No internet");
MsgBits.Alert("Delete item?");
Without breaking existing code.
π£ Roadmap
Planned enhancements:
- Snackbar support (Android)
- Toast queue handling
- Theme-aware messages
- Network-aware messaging
- Unified
Aquila.Maui.Toolkit
π¨βπ» Maintained By
Aquila Innovations π https://aquilainnovations.in π§ support@aquilainnovations.in
π License
MIT License Β© Aquila Innovations
β Final Note
Aquila.MsgBits is intentionally small.
It does one thing today β and it does it well.
If you value clean APIs, native behavior, and scalable design, this library is built for you.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-android34.0 is compatible. net8.0-windows10.0.19041 is compatible. net9.0-android was computed. net9.0-windows was computed. net10.0-android was computed. net10.0-windows was computed. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aquila.MsgBits:
| Package | Downloads |
|---|---|
|
Aquila.UpdateManager
Cross-platform update checker for .NET MAUI apps. Supports Android and Windows with store redirection. |
GitHub repositories
This package is not used by any popular GitHub repositories.