Skip to content

Commit

Permalink
Remove Windows & Add API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Aug 18, 2023
1 parent 8749982 commit ccc2833
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
25 changes: 22 additions & 3 deletions src/Plugin.Maui.Pedometer/IPedometer.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
namespace Plugin.Maui.Pedometer;
using Microsoft.Maui.ApplicationModel;

namespace Plugin.Maui.Pedometer;

/// <summary>
/// TODO: Provide relevant comments for your APIs
/// Monitor changes to the device pedometer.
/// </summary>
public interface IPedometer
{
// TODO Define your plugin interface
/// <summary>
/// Gets a value indicating whether reading the pedometer is supported on this device.
/// </summary>
bool IsSupported { get; }

/// <summary>
/// Gets a value indicating whether the pedometer is actively being monitored.
/// </summary>
bool IsMonitoring { get; }

/// <summary>
/// Occurs when pedometer reading changes.
/// </summary>
event EventHandler<PedometerData>? ReadingChanged;

/// <summary>
/// Start monitoring for changes to the pedometer.
/// </summary>
/// <remarks>
/// Will throw <see cref="FeatureNotSupportedException"/> if not supported on device.
/// </remarks>
void Start();

/// <summary>
/// Stop monitoring for changes to the pedometer.
/// </summary>
void Stop();
}
27 changes: 0 additions & 27 deletions src/Plugin.Maui.Pedometer/Pedometer.windows.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/Plugin.Maui.Pedometer/Plugin.Maui.Pedometer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<!-- Windows -->
<ItemGroup Condition="$(TargetFramework.StartsWith('net')) == true AND $(TargetFramework.Contains('-windows')) != true">
<Compile Remove="**\*.windows.cs" />
<None Include="**\*.windows.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
<Compile Remove="**\windows\**\*.cs" />
<None Include="**\windows\**\*.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>
Expand Down

0 comments on commit ccc2833

Please sign in to comment.