Routeables.Native
3.0.0
dotnet add package Routeables.Native --version 3.0.0
NuGet\Install-Package Routeables.Native -Version 3.0.0
<PackageReference Include="Routeables.Native" Version="3.0.0" />
<PackageVersion Include="Routeables.Native" Version="3.0.0" />
<PackageReference Include="Routeables.Native" />
paket add Routeables.Native --version 3.0.0
#r "nuget: Routeables.Native, 3.0.0"
#:package Routeables.Native@3.0.0
#addin nuget:?package=Routeables.Native&version=3.0.0
#tool nuget:?package=Routeables.Native&version=3.0.0
Routeables.Native
The system notifications of the platform for Routeables, with no UI framework: Notification.Builder on Android (no AndroidX, no MAUI Essentials: the activity in front is followed by the library itself), UserNotifications on iOS and Mac Catalyst, AppNotificationManager of the Windows App SDK on Windows (a WinUI 3 application included); an application that targets net10.0-windows10.0.x without running with the Windows App SDK (Avalonia, WPF) shows the toasts of Windows itself. The plain net10.0 target (the desktop of Avalonia, WPF, a console) has them on Linux (org.freedesktop.Notifications on the D-Bus session bus, spoken by a small client of the library, no package) and on Windows (toasts, through the WindowsContracts.Net.Foundation.UniversalApiContract package, no Windows SDK target); in the browser of a WebAssembly application that is not Blazor (Avalonia, Uno) through the Notification API (the JavaScript module is shared with Routeables.Blazor; copy routeables-notifications-worker.js (in the package, copied for you into the wwwroot of a browser head) to the root of the site for action buttons and a reply field); on macOS (the plain net10.0 build) through UNUserNotificationCenter reached by the Objective-C runtime, for an application in a .app bundle (outside a bundle CreateNotificationAsync returns null).
It is the engine behind WithAppNotifications of Routeables.Maui and of Routeables.Blazor in a MAUI Blazor Hybrid application, so you rarely use it directly. In a WinUI 3 application:
SystemNotificationCenter.Current.Configure(new AppNotificationOptions());
var notification = await SystemNotificationCenter.Current.CreateNotificationAsync("animals");
if (notification is null) return;
notification.Title = "New animal";
notification.Message = "A polar bear was added to the adoption list.";
await notification.ShowAsync();
On Android, call SystemNotificationCenter.HandleIntent(intent) from OnCreate and OnNewIntent of the main activity so that a tap comes back as NotificationCompleted. See System integration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. |
-
net10.0
- Routeables (= 3.0.0)
-
net10.0-android36.0
- Routeables (= 3.0.0)
-
net10.0-ios26.0
- Routeables (= 3.0.0)
-
net10.0-maccatalyst26.0
- Routeables (= 3.0.0)
-
net10.0-windows10.0.19041
- Microsoft.WindowsAppSDK (>= 1.8.260921001)
- Routeables (= 3.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Routeables.Native:
| Package | Downloads |
|---|---|
|
Routeables.Avalonia
Routeables for Avalonia: view-model-first routing, routed views, regions, dialogs and notifications. |
|
|
Routeables.Maui
Routeables for .NET MAUI: view-model-first routing, Shell integration, routed views, regions, dialogs and notifications. |
|
|
Routeables.Uno
Routeables for Uno Platform: view-model-first routing, routed views, regions, dialogs and notifications. |
|
|
Routeables.Wpf
Routeables for WPF: view-model-first routing, routed views, regions, dialogs and notifications. |
|
|
Routeables.Blazor
Routeables for Blazor: view-model-first routing, routed components, regions, dialogs, notifications and the default layout. |
GitHub repositories
This package is not used by any popular GitHub repositories.