generated from jfversluis/Plugin.Maui.Feature
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8749982
commit ccc2833
Showing
3 changed files
with
22 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters