SensorEventDispatcher

  • SensorEventDispatcher is used by FitnessSensorService to push fitness events as DataPoint objects to the Fitness Platform.

  • The publish method is used to send either a single DataPoint or a batch of DataPoint objects to the Fitness Platform.

public interface SensorEventDispatcher

Dispatcher that can be used by FitnessSensorService implementations to push events to the Fitness Platform. Each event is delivered as a DataPoint.

Public Method Summary

abstract void
publish(DataPoint dataPoint)
Publishes a new data point to the Fitness Platform.
abstract void
publish(List<DataPoint> dataPoints)
Publishes a batch of data points to the Fitness Platform.

Public Methods

public abstract void publish (DataPoint dataPoint)

Publishes a new data point to the Fitness Platform.

public abstract void publish (List<DataPoint> dataPoints)

Publishes a batch of data points to the Fitness Platform.