Skip to content

Commit

Permalink
Update Essentials Barometer API Docs (#11378)
Browse files Browse the repository at this point in the history
* Update Essentials Barometer API Docs

* Apply suggestions from code review

Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com>

Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com>
  • Loading branch information
jfversluis and hartez authored Nov 17, 2022
1 parent 50f32fc commit 6013f56
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 361 deletions.
93 changes: 0 additions & 93 deletions src/Essentials/docs/Microsoft.Maui.Essentials/Barometer.xml

This file was deleted.

This file was deleted.

199 changes: 0 additions & 199 deletions src/Essentials/docs/Microsoft.Maui.Essentials/BarometerData.xml

This file was deleted.

7 changes: 7 additions & 0 deletions src/Essentials/src/Barometer/Barometer.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ void PlatformStop()

class BarometerListener : Java.Lang.Object, ISensorEventListener, IDisposable
{
/// <summary>
/// Initializes a new instance of the <see cref="BarometerListener"/> class.
/// </summary>
/// <param name="changeHandler">The handler that is invoked when a change in the barometer reading is detected.</param>
public BarometerListener(Action<BarometerData> changeHandler)
{
ChangeHandler = changeHandler;
}

/// <summary>
/// A reference to the action that invoked when a change in the barometer reading has been detected.
/// </summary>
public readonly Action<BarometerData> ChangeHandler;

void ISensorEventListener.OnAccuracyChanged(Sensor? sensor, SensorStatus accuracy)
Expand Down
Loading

0 comments on commit 6013f56

Please sign in to comment.