-
public final class StepCounterServiceApi
-
-
Method Summary
Modifier and Type Method Description final UnitstartService(String serviceStartNotificationTitle, String serviceStartNotificationMessage, String serviceCounterNotificationTitle, String serviceCounterNotificationMessage, @DrawableRes() Integer startNotificationIcon, @DrawableRes() Integer countingNotificationIcon)StartService by the application final UnitstopService()final Flow<Long>readStepsCount()final UnitresetCounter()-
-
Method Detail
-
startService
final Unit startService(String serviceStartNotificationTitle, String serviceStartNotificationMessage, String serviceCounterNotificationTitle, String serviceCounterNotificationMessage, @DrawableRes() Integer startNotificationIcon, @DrawableRes() Integer countingNotificationIcon)
StartService by the application
- Parameters:
serviceStartNotificationTitle- Notification title for first foreground serviceserviceStartNotificationMessage- Notification message for first foreground serviceserviceCounterNotificationTitle- Notification title for foreground service when counting stepsserviceCounterNotificationMessage- Notification message for foreground service when counting stepsstartNotificationIcon- Notification icon for first foreground servicecountingNotificationIcon- Notification icon for foreground service when counting steps
-
stopService
final Unit stopService()
-
readStepsCount
final Flow<Long> readStepsCount()
-
resetCounter
final Unit resetCounter()
-
-
-
-