Implements an API that allows to interact with integrated Step Counter when available in order to have:
public class StepCounter
{
bool IsMonitoring { get; private set; }
void Start();
void Stop();
event StepCounterChangedEventHandler ReadingChanged;
}
public class StepCounterChangedEventHandler : EventArgs
{
DateTimeOffset Timestamp {get; private set}; // time of the most recent pedometer reading
int TotalSteps {get; private set};
}
VS bug #735664
Considerations here is that they would be only when the app is open and is not for background tracking. On Android that would require a service.
@jamesmontemagno Any updates on this feature request(background tracking)
It will be great if you link it to the Location API in Xamarin Essentials to return the current location too
It would be great if Xamarin.Essentials has all sensors built-in, especially the pedometer.
Most helpful comment
It would be great if Xamarin.Essentials has all sensors built-in, especially the pedometer.