Skip to content

Commit

Permalink
updated contract
Browse files Browse the repository at this point in the history
  • Loading branch information
AathifMahir committed Sep 13, 2023
1 parent 614a57d commit ecd5523
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/MauiShakeDetector/IShakeDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public interface IShakeDetector
event EventHandler<ShakeDetectedEventArgs>? ShakeDetected;
#nullable disable

/// <summary>
/// Shake stopped event for detecting whether shake detector is stopped when Auto Stop is more than 0
/// </summary>
#nullable enable
event EventHandler? ShakeStopped;
#nullable disable
/// <summary>
/// Shake Detected Command for detecting whether user shook the device
/// </summary>
Expand All @@ -77,6 +83,11 @@ public interface IShakeDetector
/// </remarks>
ICommand ShakeDetectedCommand { get; set; }

/// <summary>
/// Shake stopped command for detecting whether shake detector is stopped when Auto Stop is more than 0
/// </summary>
ICommand ShakeStoppedCommand { get; set; }

/// <summary>
/// Start listening for shake event
/// </summary>
Expand Down

0 comments on commit ecd5523

Please sign in to comment.