Interface HealthChangeListener


public interface HealthChangeListener

Receives health-store changes while the app is running. Registered with HealthStore.subscribe(SubscriptionRequest,HealthChangeListener).

This is a live object held in memory, so it is dropped when the process dies. To keep receiving changes after the OS relaunches your app in the background, register a HealthBackgroundListener class instead.

Called on the EDT.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the store reports changes for a subscription.
  • Method Details

    • healthDataChanged

      void healthDataChanged(HealthChangeBatch batch)
      Called when the store reports changes for a subscription.