Plugin.Maui.Spine.Widgets
0.261119.1593
dotnet add package Plugin.Maui.Spine.Widgets --version 0.261119.1593
NuGet\Install-Package Plugin.Maui.Spine.Widgets -Version 0.261119.1593
<PackageReference Include="Plugin.Maui.Spine.Widgets" Version="0.261119.1593" />
<PackageVersion Include="Plugin.Maui.Spine.Widgets" Version="0.261119.1593" />
<PackageReference Include="Plugin.Maui.Spine.Widgets" />
paket add Plugin.Maui.Spine.Widgets --version 0.261119.1593
#r "nuget: Plugin.Maui.Spine.Widgets, 0.261119.1593"
#:package Plugin.Maui.Spine.Widgets@0.261119.1593
#addin nuget:?package=Plugin.Maui.Spine.Widgets&version=0.261119.1593
#tool nuget:?package=Plugin.Maui.Spine.Widgets&version=0.261119.1593
Plugin.Maui.Spine.Widgets
Home-screen widgets, Live Activities and Control Center / Quick Settings controls for .NET MAUI, built from C#. The app builds a small view tree, Spine serializes it, and a generic native renderer draws it: SwiftUI in a WidgetKit extension on iOS (compiled with swiftc during the app's build, no Xcode project) and RemoteViews on Android. No app-specific Swift, no Android platform code.
dotnet add package Plugin.Maui.Spine.Widgets
builder
.UseSpine(options => options.AddAssembly(typeof(MauiProgram).Assembly)); // registers Widgets too
// .UseSpineWidgets(o => o.OpenWith<HomePage>()) // only to change the options
<ItemGroup>
<SpineWidget Include="next-start" DisplayName="Next start" Families="Small,Medium" />
</ItemGroup>
[Widget("next-start")]
public sealed class NextStartWidget(IRaceService races, IWidgetService widgets) : IWidgetProvider
{
public async Task<WidgetTimeline> BuildTimelineAsync(WidgetContext context, CancellationToken cancellationToken)
{
var start = await races.NextStartAsync(cancellationToken);
return WidgetTimeline
.Single(new Dictionary<WidgetFamily, WidgetNode>
{
[WidgetFamily.Small] = W.VStack(6,
W.Text("Next start").Caption().Secondary(),
W.Timer(start.Time).Title().Bold()),
})
.Refresh(TimeSpan.FromMinutes(30))
.OpenUrl(widgets.LinkFor(context.Kind));
}
}
Besides text, timers, icons, pictures, bars and rings, the tree draws charts of its own: W.Sparkline(points, from, to) is a line over time with an optional target band, area and last-value dot. The platform draws it from the values, so a server can push it inside a Live Activity, where a stored picture cannot go.
Controls — a toggle or a button in iOS 18's Control Center, on the Lock Screen and the Action button, and an Android Quick Settings tile — come from the same package: a <SpineControl Include="goal-alerts" Type="Toggle" /> item and a [Control("goal-alerts")] class implementing IControlProvider. A tap runs the provider's OnActionAsync in the app's process without opening the app.
An app whose only surface is a Live Activity, with no <SpineWidget>, sets <SpineWidgetsLiveActivities>true</SpineWidgetsLiveActivities> in the project to get the extension (iOS) and the notification permissions (Android) all the same.
On iOS the app needs an App Group entitlement shared with the extension; the package's build targets write it. The documentation covers the developer-portal steps device builds need.
Platforms: iOS 17+ (home-screen and Lock Screen widgets, Live Activities; controls on iOS 18+; a Live Activity layout of its own for CarPlay and the Apple Watch Smart Stack on iOS 18+ with SpineWidgetsLiveActivitySmall) and Android 5+ (home-screen widgets; Live Activities on Android 16+ as Live Updates; Quick Settings tiles on Android 7+). Every other platform, Mac Catalyst included, gets no-op services and IWidgetService.IsSupported == false.
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-windows10.0.19041 is compatible. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine (>= 0.261119.1593)
- Plugin.Maui.Spine.Common (>= 0.261119.1593)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine (>= 0.261119.1593)
- Plugin.Maui.Spine.Common (>= 0.261119.1593)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine (>= 0.261119.1593)
- Plugin.Maui.Spine.Common (>= 0.261119.1593)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine (>= 0.261119.1593)
- Plugin.Maui.Spine.Common (>= 0.261119.1593)
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.261119.1593 | 47 | 11/19/2026 |
| 0.261119.1591 | 46 | 11/19/2026 |
| 0.261119.1589 | 48 | 11/19/2026 |
| 0.261119.1587 | 49 | 11/19/2026 |
| 0.261119.1585 | 50 | 11/19/2026 |
| 0.261118.1569 | 45 | 11/18/2026 |
| 0.261118.1565 | 50 | 11/18/2026 |
| 0.261118.1564 | 48 | 11/18/2026 |
| 0.261118.1563 | 67 | 11/18/2026 |
| 0.261118.1562 | 65 | 11/18/2026 |
| 0.261118.1561 | 68 | 11/18/2026 |
| 0.261117.1560 | 88 | 11/17/2026 |
| 0.261117.1559 | 77 | 11/17/2026 |
| 0.261113.1556 | 95 | 11/13/2026 |
| 0.261112.1555 | 90 | 11/12/2026 |
| 0.261112.1554 | 93 | 11/12/2026 |
| 0.261112.1553 | 93 | 11/12/2026 |
| 0.261112.1552 | 92 | 11/12/2026 |
| 0.261112.1551 | 88 | 11/12/2026 |
| 0.261112.1550 | 95 | 11/12/2026 |