isServiceRunning method

Future<bool> isServiceRunning()

Checks if the background step counting service is currently running.

Returns true if the background service is active and monitoring steps, false otherwise.

This can be useful for UI updates to show the current service status or to conditionally start/stop the service.

Implementation

Future<bool> isServiceRunning() {
  return StepsCountPlatform.instance.isServiceRunning();
}