Plugin.Maui.MarkdownView
0.0.5
See the version list below for details.
dotnet add package Plugin.Maui.MarkdownView --version 0.0.5
NuGet\Install-Package Plugin.Maui.MarkdownView -Version 0.0.5
<PackageReference Include="Plugin.Maui.MarkdownView" Version="0.0.5" />
<PackageVersion Include="Plugin.Maui.MarkdownView" Version="0.0.5" />
<PackageReference Include="Plugin.Maui.MarkdownView" />
paket add Plugin.Maui.MarkdownView --version 0.0.5
#r "nuget: Plugin.Maui.MarkdownView, 0.0.5"
#:package Plugin.Maui.MarkdownView@0.0.5
#addin nuget:?package=Plugin.Maui.MarkdownView&version=0.0.5
#tool nuget:?package=Plugin.Maui.MarkdownView&version=0.0.5
Plugin.Maui.MarkdownView
Plugin.Maui.MarkdownView
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.MarkdownView
, or through the NuGet Package Manager in Visual Studio.
Supported Platforms
Platform | Minimum Version Supported |
---|---|
iOS | 11+ |
Android | 5.0 (API 21) |
API Usage
Plugin.Maui.MarkdownView
provides the Feature
class that has a single property Property
that you can get or set.
You can either use it as a static class, e.g.: Feature.Default.Property = 1
or with dependency injection: builder.Services.AddSingleton<IFeature>(Feature.Default);
Permissions
Before you can start using Feature, you will need to request the proper permissions on each platform.
iOS
No permissions are needed for iOS.
Android
No permissions are needed for Android.
Dependency Injection
You will first need to register the Feature
with the MauiAppBuilder
following the same pattern that the .NET MAUI Essentials libraries follow.
builder.Services.AddSingleton(Feature.Default);
You can then enable your classes to depend on IFeature
as per the following example.
public class FeatureViewModel
{
readonly IFeature feature;
public FeatureViewModel(IFeature feature)
{
this.feature = feature;
}
public void StartFeature()
{
feature.ReadingChanged += (sender, reading) =>
{
Console.WriteLine(reading.Thing);
};
feature.Start();
}
}
Straight usage
Alternatively if you want to skip using the dependency injection approach you can use the Feature.Default
property.
public class FeatureViewModel
{
public void StartFeature()
{
feature.ReadingChanged += (sender, reading) =>
{
Console.WriteLine(feature.Thing);
};
Feature.Default.Start();
}
}
Feature
Once you have created a Feature
you can interact with it in the following ways:
Events
ReadingChanged
Occurs when feature reading changes.
Properties
IsSupported
Gets a value indicating whether reading the feature is supported on this device.
IsMonitoring
Gets a value indicating whether the feature is actively being monitored.
Methods
Start()
Start monitoring for changes to the feature.
Stop()
Stop monitoring for changes to the feature.
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 | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows10.0.19041 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 8.0.100)
-
net8.0-android34.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 8.0.100)
-
net8.0-ios18.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 8.0.100)
-
net8.0-maccatalyst18.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 8.0.100)
-
net8.0-windows10.0.19041
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 8.0.100)
- System.Management (>= 8.0.0)
-
net9.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 9.0.14)
-
net9.0-android35.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 9.0.14)
-
net9.0-ios18.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 9.0.14)
-
net9.0-maccatalyst18.0
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 9.0.14)
-
net9.0-windows10.0.19041
- MarkdownParser (>= 1.0.0 && <= 2.0.0)
- Microsoft.Maui.Controls (>= 9.0.14)
- System.Management (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.